feat(): 大量更新
This commit is contained in:
20
Assets/Script/Gameplay/Map/MapFlag.cs
Normal file
20
Assets/Script/Gameplay/Map/MapFlag.cs
Normal file
@@ -0,0 +1,20 @@
|
||||
using UnityEngine;
|
||||
using System;
|
||||
namespace Map
|
||||
{
|
||||
public class MapFlag : MonoBehaviour
|
||||
{
|
||||
public string FlagName;
|
||||
public Vector3 Position;
|
||||
public MapFlag ParentFlag;
|
||||
public MapFlag LeftFlag;
|
||||
public MapFlag RightFlag;
|
||||
|
||||
public event Action<MapFlag> OnPlayerEnter;
|
||||
private void OnTriggerEnter(Collider other)
|
||||
{
|
||||
OnPlayerEnter?.Invoke(this);
|
||||
}
|
||||
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user