Files
taptap2024_GJ_chidouren/Assets/Scripts/Game/Component/SceneProp/WhiteProp.cs

14 lines
348 B
C#
Raw Normal View History

2024-10-19 03:04:15 +08:00
using Game.EventDefine;
using UnityEngine;
namespace Game.Component.SceneProp
{
public class WhiteProp : BaseProp
{
[SerializeField] private float _duration = 1.5f;
protected override void OnTrigger (PlayerEntity entity)
{
GameEventDefine.GlobalRunaway.SendMessage (this._duration);
}
}
}