You've already forked taptap2024_GJ_chidouren
updat core
This commit is contained in:
32
Assets/Scripts/Game/Component/SceneProp/SuccessProp.cs
Normal file
32
Assets/Scripts/Game/Component/SceneProp/SuccessProp.cs
Normal file
@@ -0,0 +1,32 @@
|
||||
using System;
|
||||
using Game.EventDefine;
|
||||
using UnityEngine;
|
||||
|
||||
namespace Game.Component.SceneProp
|
||||
{
|
||||
/// <summary>
|
||||
/// 游戏成功触发器
|
||||
/// </summary>
|
||||
public class SuccessProp : BaseProp
|
||||
{
|
||||
protected override void OnReady ()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
protected override void OnTrigger (PlayerEntity entity)
|
||||
{
|
||||
// GameEventDefine.GameComplete.SendMessage ();
|
||||
GameEventDefine.ChangeGameFsm.SendMessage (GameState.SuccessGame);
|
||||
}
|
||||
|
||||
#if UNITY_EDITOR
|
||||
private void OnDrawGizmos ()
|
||||
{
|
||||
Gizmos.color = Color.yellow;
|
||||
Gizmos.DrawSphere (transform.position , 0.5f);
|
||||
UnityEditor.Handles.Label (transform.position, "通关点");
|
||||
}
|
||||
#endif
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user