예제 #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);
 }