// Update is called once per frame private void Update() { Stats.Tick(); if (m_AttackCoolDown > 0.0f) { m_AttackCoolDown -= Time.deltaTime; } }
// Update is called once per frame void Update() { Stats.Tick(); if (m_AttackCoolDown > 0.0f) { m_AttackCoolDown -= Time.deltaTime; } if (invincible) { if (invincibleTimer >= invincibleTime) { invincibleTimer = 0f; invincible = false; } invincibleTimer += Time.deltaTime; } }