// Update is called once per frame void Update() { if (Whosturn == 1) { enemy.playTurn(); Whosturn = 0; player.energy += 2; } }