public void Player_Attack(int orbIndex, int power, int angle) { OrbController orb = playerTeam[orbIndex]; orb.power = power; orb.angle = angle; orb.FireInAngle(); }
public void executeAttack() { canvasGroup.alpha = 0; canvasGroup.interactable = false; canvasGroup.blocksRaycasts = false; hideCursor(); currentOrb.power = (int)powerSlider.value; currentOrb.angle = (int)angleSlider.value; currentOrb.FireInAngle(); StartCoroutine(runTurn()); }