Пример #1
0
 public override void _Ready()
 {
     feet     = GetChild <PlayerSoundControl>(0);
     speaking = GetChild <PlayerSoundControl>(1);
     gun      = GetChild <PlayerSoundControl>(2);
     instance = this;
 }
Пример #2
0
 public void AudioFinished(PlayerSoundControl sound)
 {
     if (sound.Repeat())
     {
         sound.Play();
     }
 }