public void startBattle() { // playerMovement.setPlayerStepCountToZero(); Debug.Log("start battle"); Debug.Log(playerStepsLimit); Debug.Log(enemyEncounterSteps); mainRpgStatus = MainRpgStatus.BATTLE; battleControl.setUpBattle(); battleScreen.SetActive(true); }
void Start() { mainRpgStatus = MainRpgStatus.WALK; battleScreen.SetActive(false); playerMovement = player.GetComponent <PlayerMovement>(); playerStepsLimit = playerMovement.playerStepsLimit; battleControl = battleController.GetComponent <BattleControl>(); }