Пример #1
0
 public override void Create(CharData charData, ViewMap viewMap)
 {
     _viewMap = viewMap;
     gameObj = new Player();
     gameObj.Init(charData, viewMap.LogicMap);
     gameGo = GameObject.CreatePrimitive(PrimitiveType.Cube);
     gameGo.name = charData.name;
     gameTrans = gameGo.transform;
 }
Пример #2
0
 public override void Create(CharData charData, ViewMap viewMap)
 {
     _viewMap = viewMap;
     gameObj = new MePlayer();
     gameObj.Init(charData, viewMap.LogicMap);
     //            gameGo = new GameObject();
     gameGo = GameObject.CreatePrimitive(PrimitiveType.Cube);
     gameGo.name = charData.name;
     gameGo.AddComponent<PlayerMoveController>();
     gameTrans = gameGo.transform;
 }