예제 #1
0
    private void StartBattle()
    {
        state = GameState.Battle;
        _battlesystem.gameObject.SetActive(true);
        _worldCamera.gameObject.SetActive(false);

        NuzlonParty playerParty = _playerController.GetComponent <NuzlonParty>();
        Nuzlon      wildNuzlon  = FindObjectOfType <MapArea>().GetComponent <MapArea>().GetRandomWildNuzlon();

        _battlesystem.StartBattle(playerParty, wildNuzlon);
    }
예제 #2
0
 public void StartBattle(NuzlonParty playerParty, Nuzlon wildNuzlon)
 {
     _playerParty = playerParty;
     _wildNuzlon  = wildNuzlon;
     StartCoroutine(SetupBattle());
 }