feat(): 大量更新
This commit is contained in:
10
Assets/Script/Gameplay/Map/FlightTrigger.cs
Normal file
10
Assets/Script/Gameplay/Map/FlightTrigger.cs
Normal file
@@ -0,0 +1,10 @@
|
||||
using UnityEngine;
|
||||
using Share;
|
||||
namespace Map
|
||||
{
|
||||
public class FlightTrigger : MonoBehaviour
|
||||
{
|
||||
[SerializeField] public ICharacter Player;
|
||||
[SerializeField] public ICharacter Enemy;
|
||||
}
|
||||
}
|
3
Assets/Script/Gameplay/Map/FlightTrigger.cs.meta
Normal file
3
Assets/Script/Gameplay/Map/FlightTrigger.cs.meta
Normal file
@@ -0,0 +1,3 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 5e697dc78ed84a3ab2e921a57c17be95
|
||||
timeCreated: 1760495479
|
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);
|
||||
}
|
||||
|
||||
}
|
||||
}
|
3
Assets/Script/Gameplay/Map/MapFlag.cs.meta
Normal file
3
Assets/Script/Gameplay/Map/MapFlag.cs.meta
Normal file
@@ -0,0 +1,3 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 2c3ea88c92cc4d0bb6098983903be7fb
|
||||
timeCreated: 1760444130
|
13
Assets/Script/Gameplay/Map/MapFlagManager.cs
Normal file
13
Assets/Script/Gameplay/Map/MapFlagManager.cs
Normal file
@@ -0,0 +1,13 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using Core;
|
||||
using UnityEngine;
|
||||
|
||||
namespace Map
|
||||
{
|
||||
public class MapFlagManager : MonoSingleton<MapFlagManager>
|
||||
{
|
||||
public MapFlag StartFlag;
|
||||
}
|
||||
}
|
3
Assets/Script/Gameplay/Map/MapFlagManager.cs.meta
Normal file
3
Assets/Script/Gameplay/Map/MapFlagManager.cs.meta
Normal file
@@ -0,0 +1,3 @@
|
||||
fileFormatVersion: 2
|
||||
guid: f13be1e244e84e3b93b0b3a4c054cb46
|
||||
timeCreated: 1760424376
|
Reference in New Issue
Block a user