예제 #1
0
 public void StartBattle(CreatureTeam playerteam, Creature wildCreature)
 {
     //wierd use of the same name just to make it work in script
     this.playerteam   = playerteam;
     this.wildCreature = wildCreature;
     isTrainerBattle   = false;
     StartCoroutine(SetUpBattle());
 }
예제 #2
0
    public void StartTrainerBattle(CreatureTeam playerteam, CreatureTeam trainerTeam)
    {
        //wierd use of the same name just to make it work in script
        this.playerteam  = playerteam;
        this.trainerteam = trainerTeam;
        ////for trainer battle, bug fix to false
        isTrainerBattle = true;

        //player = playerteam.GetComponent<PlayerController3D>();
        player  = playerteam.GetComponent <PlayerController360>();
        trainer = trainerteam.GetComponent <TrainerController>();

        StartCoroutine(SetUpBattle());
    }