public void Init() { //读取数据库 CPlayer p1 = new CPlayer() { Id = 1, UserID = 1, }; p1.Init("", "child_01"); m_UnitList.Add(p1); }
//移动 public void Move(MoveData data) { CPlayer unit = (CPlayer)m_UnitList[data.ID]; }
//操作 public void Operate(OperateData data) { CPlayer unit = (CPlayer)m_UnitList[data.ID]; }