public void OnClick() { if (fightManager.Fighting() && !animationRunning && fightManager.currentTurn == FightManager.Turn.Player) { Attack(); } }
private void Update() { if (fightManager != null && fightManager.Fighting()) { transform.position = new Vector3(CameraFightPos.position.x, CameraFightPos.position.y, transform.position.z); } else { transform.position = new Vector3(Player.transform.position.x, Player.transform.position.y, transform.position.z); } }
private void Update() { // print("Fighting: " + fightManager.Fighting()); // print("Animation Running: " + animationRunning); // print("Turn:" + fightManager.currentTurn); // print("defeated: " + defeated); if (fightManager.Fighting() && !animationRunning && fightManager.currentTurn == FightManager.Turn.Mob && !defeated) { Attack(CurrentDamage); } }