public void choseCharCallBack(int id, int charid) { if (id == GameManager.Instance.ID) { self.GetComponent <CharacterInfo>().setmaninfo(charid - 1); } else { enemy.GetComponent <CharacterInfo>().setmaninfo(charid - 1); } }
//选人回调 public void choseCharCallBack(int id, int charid) { if (id == GameManager.Instance.ID) { self.GetComponent <CharacterInfo>().setmaninfo(charid - 1); //初始化技能 self.Skill1.initSkill(Constant.CharSkill[charid - 1, 0], false); self.Skill2.initSkill(Constant.CharSkill[charid - 1, 1], false); self.Skill3.initSkill(Constant.CharSkill[charid - 1, 2], false); } else { enemy.GetComponent <CharacterInfo>().setmaninfo(charid - 1); } }