public void Update() { if (!_initializationWasSuccessfull) { return; } _movementCustodian.Update(); if (_movementCustodian.IsMovementPossible()) { RunOnceBox.RunOnce(ref _movementStartBox, () => { Debug.Log("time to moving " + Time.realtimeSinceStartup); }, 3); } Traveller.SetActive(_movementCustodian.IsMovementPossible()); Overlay.SetMovementPossibilityDetails(_movementCustodian.ThisFrameBlockingProcesses); _updaterUntilException.Execute(() => { _ultraUpdatableContainer.Update(new MockedFromGameObjectCameraForUpdate(Traveller)); }); var position3D = Traveller.transform.position; var travellerFlatPosition = new Vector2(position3D.x, position3D.z); _eTerrainHeightPyramidFacade.Update(travellerFlatPosition); if (_gameInitializationFields.HasField <MultipleLevelsHeightPyramidExplorerGO>()) { var explorer = _gameInitializationFields.Retrive <MultipleLevelsHeightPyramidExplorerGO>(); explorer.UpdateTravellingUniforms(travellerFlatPosition, _eTerrainHeightPyramidFacade.PyramidCenterWorldSpacePerLevel); explorer.UpdateHeightmapSegmentFillingState(_heightmapListenersContainer.ListenersDict.ToDictionary(c => c.Key, c => c.Value.TokensDict)); } }
public void Update() { _updaterUntilException.Execute(() => { _ultraUpdatableContainer.Update(new EncapsulatedCameraForUpdate(ActiveCamera)); }); if (msw != null) { Debug.Log("T65: game initialization took: " + msw.CollectResults()); msw = null; } }