/// <summary> /// This event is called from the <see cref="PlayerMoveManager"/> when it is directed by <see cref="PlayerAgentMoveManager"/>. /// </summary> private void OnDestinationReached() { PlayerInteractiveObjectDestinationReachedEvent.Get().OnPlayerInteractiveObjectDestinationReached(); }
public TestScenarioManager() { PlayerInteractiveObjectDestinationReachedEvent.Get().RegisterOnPlayerInteractiveObjectDestinationReachedEventListener(this.OnPlayerDestinationReached); this.InitialCameraPivotPointTransform = new TransformStruct(GameObject.FindGameObjectWithTag(TagConstants.CAMERA_PIVOT_POINT_TAG).transform); this.InitialCameraZoom = Camera.main.orthographicSize; }