|
|
|
@ -1,11 +1,15 @@
|
|
|
|
|
using System.Collections.Generic;
|
|
|
|
|
using System.Reflection;
|
|
|
|
|
using EccsLogicWorldAPI.Shared.AccessHelper;
|
|
|
|
|
using LogicLog;
|
|
|
|
|
using LogicWorld;
|
|
|
|
|
using UnityEngine;
|
|
|
|
|
|
|
|
|
|
namespace CameraRoll.Client.Tool {
|
|
|
|
|
public class CameraRollTool {
|
|
|
|
|
private static ILogicLogger _logger = null!;
|
|
|
|
|
private static Camera _cam;
|
|
|
|
|
private static PropertyInfo _showBuildingUI;
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// How fast does it interpolate between points
|
|
|
|
@ -38,6 +42,7 @@ namespace CameraRoll.Client.Tool {
|
|
|
|
|
_logger = logger;
|
|
|
|
|
PathPoints.Clear();
|
|
|
|
|
_playing = false;
|
|
|
|
|
_showBuildingUI = Properties.getPrivateStatic(typeof(FirstPersonInteraction), "ShowBuildingUI");
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public static void OnEnter() {
|
|
|
|
@ -77,6 +82,8 @@ namespace CameraRoll.Client.Tool {
|
|
|
|
|
_interpolationState = 0.0f;
|
|
|
|
|
|
|
|
|
|
SetPointsVisible(false);
|
|
|
|
|
_showBuildingUI.SetValue(null, false); // Hide UI
|
|
|
|
|
|
|
|
|
|
_playing = true;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
@ -88,6 +95,7 @@ namespace CameraRoll.Client.Tool {
|
|
|
|
|
_cam.transform.localRotation = _originalRotation;
|
|
|
|
|
|
|
|
|
|
SetPointsVisible(true);
|
|
|
|
|
_showBuildingUI.SetValue(null, true); // Show UI
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public static void Clear() {
|
|
|
|
|