public void HeavyAttackChain() { if (previousAttackLight) { chainAttackTimer = 0; } previousAttackLight = false; ChainUI.AddHeavy(); numberOfChainAttacks = 0; }
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); }
// Use this for initialization void Start() { instance = this; canvasGroup = GetComponent <CanvasGroup>(); chainOne = this.FindContainsInChildren("ChainOne"); chainTwo = this.FindContainsInChildren("ChainTwo"); chainThree = this.FindContainsInChildren("ChainThree"); chainFinish = this.FindContainsInChildren("ChainFinish"); chainOne.SetActive(false); chainTwo.SetActive(false); chainThree.SetActive(false); chainFinish.SetActive(false); }
public void Miss() { chainAttackTimer = float.PositiveInfinity; numberOfChainAttacks = 0; ChainUI.SetChainNumber(numberOfChainAttacks); }