feat():大改前的提交,这个版本保存了所有冗余的代码

This commit is contained in:
2025-10-17 15:10:19 +08:00
parent 668bfe12eb
commit 3d03c59dc3
68 changed files with 2045 additions and 159 deletions

View File

@@ -3,7 +3,7 @@ using UnityEngine;
using Gameplay;
using System.Collections.Generic;
namespace Share
namespace Interface
{
/// <summary>
/// 角色接口可受伤害、治疗和添加Buff、发生战斗

View File

@@ -0,0 +1,13 @@
using UnityEngine;
using Gameplay.Player;
namespace Interface
{
public interface IEditable
{
void OnGazeEnter(PlayerEditController editor); // 玩家开始注视时触发
void OnGazeExit(PlayerEditController editor); // 玩家停止注视时触发
void BeginEdit();
void EndEdit();
IEditable GetEditable();
}
}

View File

@@ -0,0 +1,3 @@
fileFormatVersion: 2
guid: 8a22b94dcb1d4eb78b7b07ebd8967dc6
timeCreated: 1760629255

View File

@@ -1,9 +1,11 @@
using UnityEngine;
namespace Share
namespace Interface
{
public interface IInteractable
{
string GetInteractPrompt(); // 返回提示文字例如“按E打开门”
void Interact(GameObject interactor); // 当玩家交互时触发
void OnGazeEnter(GameObject editor); // 玩家开始注视时触发
void OnGazeExit(GameObject editor); // 玩家停止注视时触发
}
}