Example #1
0
        /// <summary>
        /// 创建一个实体
        /// </summary>
        /// <param name="charData"></param>
        public void CreateViewObj(CharData charData)
        {
            ViewObj obj = new ViewObj();

            obj.Create(charData, this);
            viewOjbList.Add(obj);
            _logicMap.gameObjList.Add(obj.gameObj);
        }
Example #2
0
        /// <summary>
        /// 创建玩家自己
        /// </summary>
        /// <param name="charData"></param>
        public void CreateMe(CharData charData)
        {
            MeViewPlayer obj = new MeViewPlayer();

            obj.Create(charData, this);
            viewOjbList.Add(obj);
            _logicMap.gameObjList.Add(obj.gameObj);
            CurViewObj = obj;
        }
Example #3
0
 /// <summary>
 /// 创建一个实体
 /// </summary>
 /// <param name="charData"></param>
 public void CreateViewObj(CharData charData)
 {
     ViewObj obj = new ViewObj();
     obj.Create(charData, this);
     viewOjbList.Add(obj);
     _logicMap.gameObjList.Add(obj.gameObj);
 }