// Update is called once per frame void Update() { if (Input.GetKeyUp(KeyCode.F1)) { allEnemies[0].GetComponent <BeeCharacter>().AttackCharacter(FindObjectOfType <PlayerCharacter>()); } if (gsmScript.gameState == EGameState.enemyTurn) { if (activeCharacter != null) { if (activeCharacter.actionPips != 0) { activeCharacter.FindSightline(); activeCharacter.MakeDecision(); } else { if (EvilDoerStack.Count > 0) { activeCharacter = EvilDoerStack.Pop(); } else { activeCharacter = null; } } } else { gsmScript.gameState = EGameState.setupState; gsmScript.ProcessGameState(); } } }