private void Update() { if (chainAttackTimer < chainAttackResetsIn) { chainAttackTimer += Time.deltaTime; } else { numberOfChainAttacks = 0; ChainUI.SetChainNumber(numberOfChainAttacks); } }
public void LightAttackChain() { if (numberOfChainAttacks >= 3) { numberOfChainAttacks = 0; } previousAttackLight = true; chainAttackTimer = 0; numberOfChainAttacks++; ChainUI.SetChainNumber(numberOfChainAttacks); }
public void Miss() { chainAttackTimer = float.PositiveInfinity; numberOfChainAttacks = 0; ChainUI.SetChainNumber(numberOfChainAttacks); }