Пример #1
0
 void Death()
 {
     isDead = true;
     baseball.DisableEffects();
     playerAudio.clip = deathClip;
     playerAudio.Play();
     baseball.enabled     = false;
     fpcontroller.enabled = false;
 }
Пример #2
0
 void Win()
 {
     isWon = true;
     baseball.DisableEffects();
     playerAudio.clip = winClip;
     playerAudio.Play();
     baseball.enabled     = false;
     fpcontroller.enabled = false;
     //anim.SetTrigger("Win");
 }
Пример #3
0
 void Enter()
 {
     isTouching = true;
     baseball.DisableEffects();
     playerAudio.clip = warpClip;
     playerAudio.Play();
     baseball.enabled     = false;
     fpcontroller.enabled = false;
     //anim.SetTrigger("Win");
 }