// Update is called once per frame void Update() { ShowBothStats(); CheckEnemyNumber(); CheckBattleScenePhases(); enemyClone = Enemy[SelectedEnemyID].GetComponent <WeakEnemySampleScript>(); Debug.Log(battlePhase); if (startBattleScene) { battlePhase = BattleScenePhases._LocatorMove.ToString(); } if (playerClone.addDamage == true) { DamageEnemy(playerClone.GetAttack()); } if (enemyClone.addDamage == true) { DamagePlayer(enemyClone.GetAttack()); } if (Input.GetKeyDown(KeyCode.KeypadEnter)) { Application.LoadLevel(0); } }
// Use this for initialization void Start() { battlePhase = BattleScenePhases._Blank.ToString(); playerInput = 0; turn = 0; playerChoiceData[0] = playerChoiceData[1] = playerChoiceData[2] = 0; Hidden = E_Choice1[0].renderer.material; battleMenu = BattleMenuManager.GetComponent <BattleMenuScript>(); playerClone = Player.GetComponent <MainCharacterScript>(); enemyClone = Enemy[SelectedEnemyID].GetComponent <WeakEnemySampleScript>(); enemy1 = Enemy[0].GetComponent <WeakEnemySampleScript>(); enemy2 = Enemy[1].GetComponent <WeakEnemySampleScript>(); enemy3 = Enemy[2].GetComponent <WeakEnemySampleScript>(); }