示例#1
0
    public void Awake()
    {
        _enemies = new List <EnemyView>();

        _enemyTimer          = TimeKeeper.GetTimer(1);
        _enemyTimer.OnTimer += SpawnEnemy;
    }
示例#2
0
    protected void Awake()
    {
        AttackCollider.enabled = false;

        _attackTimer = TimeKeeper.GetTimer(0.3f, 1, "AttackTimer");
        _attackTimer.OnTimerComplete += OnAttackTimer;
        _attackTimer.transform.parent = gameObject.transform;
    }
示例#3
0
    public void Awake()
    {
        CanShoot = true;

        _tweening = false;

        _arrowTimer = TimeKeeper.GetTimer(1, 1);
        _arrowTimer.OnTimerComplete += OnArrowTimerComplete;
    }
示例#4
0
    protected void Awake()
    {
        Health            = 5;
        Hittable          = true;
        HitRecoverSeconds = 0.8f;

        _hitRecoverTimer = TimeKeeper.GetTimer(HitRecoverSeconds, 1, "HitRecoverTimer");
        _hitRecoverTimer.OnTimerComplete += OnHitRecoverTimer;
        _hitRecoverTimer.transform.parent = gameObject.transform;
    }
示例#5
0
    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;
    }