private void SetCatIdle(bool catIdle) { if (catIdle) { IsIdle = true; _idleTimer.SetTimer(idleTime); _idleTimer.ResetAndStartTimer(); } else { IsIdle = false; _idleTimer.ResetTimer(); } }
// 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); }
private void PrepareToPounce() { IsPreparing = true; _prepareTimer.SetTimer(pounceTime); _prepareTimer.ResetAndStartTimer(); }
// Start is called before the first frame update void Start() { _timer = new TimerService(); _timer.SetTimer(BallStickTime); }