You've already forked taptap2024_GJ_chidouren
32 lines
773 B
C#
32 lines
773 B
C#
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
|
|
}
|
|
} |