public void Awake() { _enemies = new List <EnemyView>(); _enemyTimer = TimeKeeper.GetTimer(1); _enemyTimer.OnTimer += SpawnEnemy; }
protected void Awake() { AttackCollider.enabled = false; _attackTimer = TimeKeeper.GetTimer(0.3f, 1, "AttackTimer"); _attackTimer.OnTimerComplete += OnAttackTimer; _attackTimer.transform.parent = gameObject.transform; }
public void Awake() { CanShoot = true; _tweening = false; _arrowTimer = TimeKeeper.GetTimer(1, 1); _arrowTimer.OnTimerComplete += OnArrowTimerComplete; }
protected void Awake() { Health = 5; Hittable = true; HitRecoverSeconds = 0.8f; _hitRecoverTimer = TimeKeeper.GetTimer(HitRecoverSeconds, 1, "HitRecoverTimer"); _hitRecoverTimer.OnTimerComplete += OnHitRecoverTimer; _hitRecoverTimer.transform.parent = gameObject.transform; }
public void Awake() { _growlTimer = TimeKeeper.GetTimer(5); _growlTimer.transform.parent = transform; _growlTimer.OnTimer += OnGrowlTimer; _growlTimer.StartTimer(); _dieTimer = TimeKeeper.GetTimer(DieSound.clip.length, 1); _dieTimer.transform.parent = transform; _dieTimer.OnTimerComplete += OnDieTimerComplete; }