添加了教育平台
This commit is contained in:
@@ -17,19 +17,28 @@ public partial class FreeLookCamera : Node3D,IVirtualCamera
|
||||
|
||||
[Export] private float maxDistance;
|
||||
|
||||
[Export]
|
||||
private Vector3 rotation;
|
||||
private Vector3 position;
|
||||
void IActivable.SetActive(bool active) => isEnabled = active;
|
||||
|
||||
public bool Enabled
|
||||
{
|
||||
get => isEnabled;
|
||||
set => isEnabled = value;
|
||||
}
|
||||
int IVirtualCamera.FOV => fov;
|
||||
bool IVirtualCamera.IsEnabled => isEnabled;
|
||||
// ReSharper disable once ConvertToAutoProperty
|
||||
Vector3 IVirtualCamera.Rotation =>rotation ;
|
||||
// ReSharper disable once ConvertToAutoProperty
|
||||
Vector3 IVirtualCamera.Position => position;
|
||||
|
||||
[Export()]
|
||||
private Vector3 euler;
|
||||
|
||||
private bool isMoving;
|
||||
private bool enabled;
|
||||
|
||||
public override void _Ready()
|
||||
{
|
||||
euler = Rotation;
|
||||
|
@@ -43,6 +43,12 @@ public partial class VirtualCamera : Node3D, IVirtualCamera
|
||||
isEnabled = active;
|
||||
}
|
||||
|
||||
public bool Enabled
|
||||
{
|
||||
get => isEnabled;
|
||||
set => isEnabled = value;
|
||||
}
|
||||
|
||||
public override void _Ready()
|
||||
{
|
||||
CameraService.Register(this);
|
||||
|
Reference in New Issue
Block a user