private static void debugJson(AttackData a) { //int index = 0; //print(json.pokemon[0].name); for (int i = 0; i < a.attacks.Length; i++) { UnityEngine.Debug.Log(string.Format("{0} {1}",i, a.attacks[i].name)); } //print(index); }
// Use this for initialization void Awake() { Stopwatch sw = new Stopwatch(); sw.Start(); redTeamStatus.assignEnemyTeam(ref blueTeamStatus); blueTeamStatus.assignEnemyTeam(ref redTeamStatus); //get the enviornment ready FBG_BattleEnviornment.init(); //this initalizes our pokedex pokeDex = FBG_JsonReader.createPokeDex(); attackDex = FBG_JsonAttack.createAttackDex(); //this creates our teams createTeams(); //debugRedTeam(); battleGUI = this.GetComponent<FBG_BattleGUI>(); checkButtonNames(); sw.Stop(); print(string.Format("Time to load {0}ms", sw.ElapsedMilliseconds)); }