You've already forked taptap2024_GJ_chidouren
增加场景道具
This commit is contained in:
15
Assets/Scripts/Game/Component/SceneProp/WhiteProp.cs
Normal file
15
Assets/Scripts/Game/Component/SceneProp/WhiteProp.cs
Normal file
@@ -0,0 +1,15 @@
|
||||
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)
|
||||
{
|
||||
Debug.Log ("wtf?");
|
||||
GameEventDefine.GlobalRunaway.SendMessage (this._duration);
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user