protected override void OnTick(float deltaTime) { _voiceController.HandleVoiceInput(); if (_stateController.ActiveStateName != null) { _stateController.Tick(deltaTime); } }
private void Update() { _audioController?.Tick(Time.deltaTime); _stateController?.Tick(Time.deltaTime); #if UNITY_EDITOR if (Input.GetKeyDown(KeyCode.DownArrow)) { ScreenCapture.CaptureScreenshot(System.DateTime.UtcNow.ToFileTimeUtc() + ".png"); } #endif }
public void TickTransition(string fromStateName, string toStateName) { // Arrange _stateController.Initialize(); _stateController.EnterState(fromStateName); _stateTransitionBlackboard.ToStateName = toStateName; // Act _stateController.Tick(0f); // Assert Assert.AreEqual(toStateName, _stateController.ActiveStateName); }
private void Update() { if (_loaded) { _stateController.Tick(Time.deltaTime); if (Application.platform == RuntimePlatform.WindowsEditor) { if (Input.GetKeyDown(KeyCode.Insert)) { ScreenCapture.CaptureScreenshot(System.DateTime.UtcNow.ToFileTimeUtc() + ".png"); } } } }
public void TickTransition(Type fromState, Type toState) { // Arrange var fromStateName = fromState.FullName; var toStateName = toState.FullName; _stateController.Initialize(); _stateController.EnterState(fromStateName); _tickStateTransitionBlackboard.ToStateName = toStateName; // Act _stateController.Tick(0f); // Assert Assert.Equal(toStateName, _stateController.ActiveStateName); }
protected override void OnTick(float deltaTime) { try { if (_photonClient.ClientState == PlayGen.Photon.Unity.Client.ClientState.Disconnected) { _photonClient.Connect(); } _stateController.Tick(deltaTime); } catch (Exception exception) { LogProxy.Error(exception.ToString()); LogProxy.Debug(exception.StackTrace); OnException(exception); } }
protected override void OnTick(float deltaTime) { _stateController.Tick(deltaTime); }
private void Update() { _stateController.Tick(Time.deltaTime); }