using System;
using UnityEngine;
/*[System.Serializable] //添加在类,枚举,结构前面,可以让该这些对象在inspector中显示
public class EventVector3 : UnityEvent<Vector3> { }*/
public class MouseManager : Singleton<MouseManager>
{
public Texture2D point, doorway, attack, target, arrow;
RaycastHit hitInfo; //用于存储发射射线后产生的碰撞位置等信息
public event Action<Vector3> OnMouseClicked; //创建event事件
public event Action<GameObject> OnEnemyClicked;
private void Update()
{
SetCursorTexture();
MouseControl();
}
protected override void Awake()
{
base.<
MouseManager
最新推荐文章于 2025-07-16 11:29:07 发布