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