/// <summary> /// 初始化战斗 /// </summary> private void Init() { //创建敌人 CreatRole(MdlFight.GetInstance().enemyList, upPos, BPUP); //创建己方 CreatRole(MdlFight.GetInstance().ourList, downPos, BPDOWN); }
public static MdlFight GetInstance() { if (_instance == null) { _instance = new MdlFight(); } return(_instance); }
/// <summary> /// 模拟数据 /// </summary> private void Simulation() { MdlFight.GetInstance().enemyList.Clear(); MdlFight.GetInstance().enemyList.Add(new ActorData(ShipCfg.GetInstance().GetById(100003))); MdlFight.GetInstance().enemyList.Add(new ActorData(ShipCfg.GetInstance().GetById(100004))); MdlFight.GetInstance().enemyList.Add(new ActorData(ShipCfg.GetInstance().GetById(100002))); MdlFight.GetInstance().enemyList.Add(new ActorData(ShipCfg.GetInstance().GetById(100003))); MdlFight.GetInstance().enemyList.Add(new ActorData(ShipCfg.GetInstance().GetById(100004))); MdlFight.GetInstance().enemyList.Add(new ActorData(ShipCfg.GetInstance().GetById(100002))); MdlFight.GetInstance().ourList.Clear(); MdlFight.GetInstance().ourList.Add(new ActorData(ShipCfg.GetInstance().GetById(100001))); MdlFight.GetInstance().ourList.Add(new ActorData(ShipCfg.GetInstance().GetById(100001))); MdlFight.GetInstance().ourList.Add(new ActorData(ShipCfg.GetInstance().GetById(100001))); MdlFight.GetInstance().ourList.Add(new ActorData(ShipCfg.GetInstance().GetById(100001))); MdlFight.GetInstance().ourList.Add(new ActorData(ShipCfg.GetInstance().GetById(100001))); MdlFight.GetInstance().ourList.Add(new ActorData(ShipCfg.GetInstance().GetById(100001))); }