Error message

  • Notice: Undefined index: comment_node_geshinode_form in drupal_retrieve_form() (line 752 of /home/realdev/public_html/includes/form.inc).
  • Warning: call_user_func_array() expects parameter 1 to be a valid callback, function 'comment_node_geshinode_form' not found or invalid function name in drupal_retrieve_form() (line 787 of /home/realdev/public_html/includes/form.inc).

C# - Song Playing - #xna

class myClass {
Song Over;
public static void Init(ContentManager Content) {
Over = Content.Load("It's all over");
}

public static void Play(Song name_song) {
MediaPlayer.Play(name_song);
}

public Song getSong() {
return Over; // or however you want to decide which song to get
}
}

// [in Game class]
myClass a = new myClass();

a.Init(content);
a.Play(a.getSong());

No comments available.

Add new comment