public void reserveTransfer(TransferComponent transferComponent) { Core.getGlobalManager <ScoreManager>().SaveCurrentScore(); Core.getGlobalManager <SystemManager>().setMapId(transferComponent.destinyId); //Core.getGlobalManager<SystemManager>().setSpawnPosition(transferComponent.destinyPosition); Core.startSceneTransition(new FadeTransition(() => new SceneMap())); }
public void Download(FileComponent comp) { Debug.Assert(comp != null); Entity entity = new Entity(); EntityIdleComponent idle = new EntityIdleComponent(); entity.Add(idle); EntityStoreComponent store = new EntityStoreComponent(comp.Owner); entity.Add(store); FileComponent file = new FileComponent(comp); entity.Add(file); TransferComponent transfer = new TransferComponent(); entity.Add(transfer); DownloadMachineComponent machine = new DownloadMachineComponent(); entity.Add<MachineComponent>(machine); #if DEBUG LogComponent log = new LogComponent(LogController); entity.Add(log); #endif Add(entity); }