新增维修工具基础逻辑,重构face的结构并替换美术

This commit is contained in:
2024-11-06 18:34:18 +08:00
parent a6cfc50470
commit 3ee9b040d2
21 changed files with 6795 additions and 4949 deletions
+27
View File
@@ -0,0 +1,27 @@
using System.Collections;
using System.Collections.Generic;
using System.Drawing;
using UnityEngine;
public abstract class Tool : MonoBehaviour
{
//public string toolName;
protected bool isFollowingMouse = false;
public bool IsFollowingMouse => isFollowingMouse; // 只读属性
// 启动跟随鼠标
public virtual void StartFollowMouse()
{
isFollowingMouse = true;
}
// 停止跟随鼠标
public virtual void StopFollowMouse()
{
isFollowingMouse = false;
}
// 工具的使用行为,由子类实现
public abstract void UseTool(Vector3 targetPosition);
}