/// <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); }
/// <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; }