Пример #1
0
 private void SetCatIdle(bool catIdle)
 {
     if (catIdle)
     {
         IsIdle = true;
         _idleTimer.SetTimer(idleTime);
         _idleTimer.ResetAndStartTimer();
     }
     else
     {
         IsIdle = false;
         _idleTimer.ResetTimer();
     }
 }
Пример #2
0
    // Start is called before the first frame update
    void Start()
    {
        anim = gameObject.GetComponent <Animator>();
        anim.SetFloat("Speed", 0f);
        timer = new TimerService();
        // PauseAnimationStart();
        var controller = alien.GetComponent <AlienController>();

        controller.SetIsBeamed(false);
        _beaming = false;
        _keying  = false;
        _beamed  = false;
        timer.SetTimer(2);
    }
Пример #3
0
 private void PrepareToPounce()
 {
     IsPreparing = true;
     _prepareTimer.SetTimer(pounceTime);
     _prepareTimer.ResetAndStartTimer();
 }
Пример #4
0
 // Start is called before the first frame update
 void Start()
 {
     _timer = new TimerService();
     _timer.SetTimer(BallStickTime);
 }