Example #1
0
 public Playing(FadePlayer player)
     : base(player)
 {
     if (player.audioSource.get_isPlaying())
     {
         return;
     }
     player.audioSource.Play();
 }
Example #2
0
 public Wait(FadePlayer player)
     : base(player)
 {
 }
Example #3
0
 public State(FadePlayer player)
 {
     this.player = player;
 }
Example #4
0
 public FadeOut(FadePlayer player)
     : base(player)
 {
     player.currentVolume = player.audioSource.get_volume();
 }
Example #5
0
 public Paused(FadePlayer player)
     : base(player)
 {
     this.preState = player.nowState;
     player.audioSource.Pause();
 }
Example #6
0
 public FadeIn(FadePlayer player)
     : base(player)
 {
     player.audioSource.Play();
     player.audioSource.set_volume(0.0f);
 }