Пример #1
0
        /// <summary>
        /// 创建一个玩家
        /// </summary>
        /// <param name="charData"></param>
        public void CreatePlayer(CharData charData, Vector3 Pos, Quaternion rotation)
        {
            CreatureView obj = new CreatureView();

            obj.Create(charData, this, Pos, rotation);
            viewOjbList.Add(obj);
            ViewObjMap.Add(obj.ObjID, obj);
            _logicManager.entities.Add(obj.gameObj);
        }
Пример #2
0
        /// <summary>
        /// 创建玩家自己
        /// </summary>
        /// <param name="charData"></param>
        public void CreateMe(CharData charData, Vector3 Pos, Quaternion rotation)
        {
            PlayerView obj = new PlayerView();

            obj.Create(charData, this, Pos, rotation);
            //obj.AddMoveController();
            viewOjbList.Add(obj);
            _myTeamBoys.Add(obj);
            ViewObjMap.Add(obj.ObjID, obj);
            _logicManager.entities.Add(obj.gameObj);
            CurViewObj = obj;
        }