Esempio n. 1
0
        public void UpdateCameraHight(UpdateEvent e, HangarCameraFlightToTankNode hangar)
        {
            HangarConfigComponent hangarConfig = hangar.hangarConfig;
            Vector3 position = hangar.cameraRootTransform.Root.position;

            position.y = Vector3.Lerp(hangar.hangarCameraFlightData.OriginCameraPosition, hangar.hangarCameraFlightData.DestinationCameraPosition, Mathf.Clamp01((UnityTime.time - hangar.hangarCameraFlightData.StartFlightTime) / hangarConfig.FlightToTankTime)).y;
            hangar.cameraRootTransform.Root.position = position;
            base.ScheduleEvent <HangarCameraRotateToDestinationEvent>(hangar);
        }
Esempio n. 2
0
 public void SwitchToLocationView(HangarCameraStopFlightEvent e, HangarCameraFlightToTankNode hangar)
 {
     hangar.hangarCameraViewState.Esm.ChangeState <HangarCameraViewState.TankViewState>();
 }