// Update is called once per frame void Update() { timer += Time.deltaTime; disrupted = powerCell.GetDisrupted(); if (!disrupted) { CheckInput(); } if (activeSide > 3) { activeSide = 0; } if (activeSide < 0) { activeSide = 3; } if (thisSide == activeSide) { isRightSide = true; } else { isRightSide = false; } }
//Checks for PowerCell disrupted state. If not disrupted, checks for player inputs. void Update() { disrupted = powerCell.GetDisrupted(); if (!disrupted) { CheckInput(); } Activator(); }