public LocalPlayer(IWorldLocator worldlocator, IGameObjectsRepository repository) { this.worldlocator = worldlocator; var obj = repository.CreateGameObject(); RobotPlayerPart = obj.GetComponent <RobotPlayerPart>(); }
public PrototypeObjectsFactory(IGameObjectsRepository repository) { this.repository = repository; TubeType = new ItemType() { Name = "Tube", Mesh = TW.Assets.LoadMesh("SkyMerchant/TubePart/TubePart") }; CogType = new ItemType() { Name = "Cog", Mesh = TW.Assets.LoadMesh("SkyMerchant/Cogs/Cog01") }; WoodType = new ItemType() { Name = "Wood", Mesh = UtilityMeshes.CreateMeshWithText(0.4f, "Wood", TW.Graphics) }; }
public SimpleWorldLocator(IGameObjectsRepository repository) { this.repository = repository; }
public RelativePositioningSimulator(IGameObjectsRepository repository) { this.repository = repository; }