修改框架

This commit is contained in:
MuHua-123
2025-05-23 17:44:49 +08:00
parent 1ddf587927
commit 937595b3b1
19 changed files with 403 additions and 0 deletions
@@ -0,0 +1,47 @@
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
/// <summary>
/// 默认相机
/// </summary>
public class CameraDefault : CameraController {
public override Vector3 Position {
get => throw new System.NotImplementedException();
set => throw new System.NotImplementedException();
}
public override Vector3 Forward {
get => throw new System.NotImplementedException();
set => throw new System.NotImplementedException();
}
public override Vector3 Right {
get => throw new System.NotImplementedException();
set => throw new System.NotImplementedException();
}
public override Vector3 EulerAngles {
get => throw new System.NotImplementedException();
set => throw new System.NotImplementedException();
}
public override float Distance {
get => throw new System.NotImplementedException();
set => throw new System.NotImplementedException();
}
public override void Initialize() {
ModuleCamera.OnCameraMode += ModuleCamera_OnCameraMode;
}
private void ModuleCamera_OnCameraMode(EnumCameraMode mode) {
#if UNITY_STANDALONE_WIN && !UNITY_EDITOR
return;
#endif
gameObject.SetActive(mode == EnumCameraMode.None);
if (mode == EnumCameraMode.None) { ModuleCamera.CurrentCamera = this; }
}
public override void ResetCamera() {
// transform.position = HotUpdateScene.I.StartPoint.position;
// transform.eulerAngles = HotUpdateScene.I.StartPoint.eulerAngles;
}
}