Example #1
0
        public void Init()
        {
            //读取数据库
            CPlayer p1 = new CPlayer()
            {
                Id     = 1,
                UserID = 1,
            };

            p1.Init("", "child_01");

            m_UnitList.Add(p1);
        }
Example #2
0
 //移动
 public void Move(MoveData data)
 {
     CPlayer unit = (CPlayer)m_UnitList[data.ID];
 }
Example #3
0
 //操作
 public void Operate(OperateData data)
 {
     CPlayer unit = (CPlayer)m_UnitList[data.ID];
 }