public void Update() { handlePause(); if (SlowDownTime.SLOW_DOWN_TIME_SCALAR != 0 && m_damagable.isAlive() && m_target && m_target.GetComponent <Damagable>().isAlive()) { updateUnit(); updateTimers(); if (m_mode == Mode.ATTACK_PLAYER) { handleAttackPlayer(); } if (m_mode == Mode.STUNNED) { updateStunned(); } } }
// Update is called once per frame void Update() { if (SlowDownTime.SLOW_DOWN_TIME_SCALAR == 0 && (m_damagable && m_damagable.isAlive() || m_damagable == null)) { if (m_frozen == false) { m_frozen = true; m_renderer.material = m_redMat; } } else { if (m_frozen) { m_frozen = false; m_renderer.material = m_orgmat; } } }