コード例 #1
0
ファイル: Team.cs プロジェクト: Volatile-Element/SHD
    public void instantiateTeam(int teamID)
    {
        CharacterXML chars = new CharacterXML();

        chars.getData();

        TeamXML teams = new TeamXML();

        teams.getData();

        List <string> teamC = teams.getTeam(teamID);

        one   = chars.getCharacter(Convert.ToInt32(teamC[1]));
        two   = chars.getCharacter(Convert.ToInt32(teamC[2]));
        three = chars.getCharacter(Convert.ToInt32(teamC[3]));
        four  = chars.getCharacter(Convert.ToInt32(teamC[4]));
        five  = chars.getCharacter(Convert.ToInt32(teamC[5]));
    }
コード例 #2
0
 // Use this for initialization
 void Start()
 {
     testingXMLLoading.getData();
     currentCharacter = testingXMLLoading.getCharacter(searchID);
 }