public static GameEntitySystem.Entity spawnEntity(string name, Engine.Vector3 location) { GameEntitySystem.Entity newEntity = m_subsystemEntityFactory.CreateEntity(name, true); newEntity.FindComponent <Game.ComponentBody>(true).Position = location; m_subsystemEntityFactory.Project.AddEntity(newEntity); return(newEntity); }
//自动调用,请勿使用 public static void Initialize(Game.ComponentPlayer scPlayer) { player = scPlayer; playerEntity = player.Entity; }