feat():完成3种模式的基本运行框架

This commit is contained in:
2025-10-18 08:55:38 +08:00
parent 3d03c59dc3
commit 345930843d
39 changed files with 909 additions and 427 deletions

View File

@@ -1,3 +1,4 @@
using Core;
using UnityEngine;
using Interface;
using Script.Gameplay.Input;
@@ -21,11 +22,8 @@ namespace Gameplay.Player
inputManager = InputManager.Instance;
if (playerCamera == null)
playerCamera = GameObject.FindWithTag("MainCamera").GetComponent<Camera>();
inputManager.Input.Player.SwitchWatchMode.performed += ctx =>
{
if (currentTarget != null) currentTarget.BeginEdit();
};
ControllerLocator.Instance.Register(this);
}
void Update()
@@ -73,6 +71,11 @@ namespace Gameplay.Player
}
}
public IEditable GetCurrentTarget()
{
return currentTarget;
}
void OnDrawGizmos()
{
if(!isDrawGizmos) return;