This commit is contained in:
2024-10-16 00:03:41 +08:00
commit 897058435c
5033 changed files with 1009728 additions and 0 deletions

View File

@@ -0,0 +1,11 @@
using UnityEngine;
namespace System.Guide.TriggerModel
{
public abstract class BaseGuideTrigger : MonoBehaviour
{
internal abstract void OnNodeActive (GuideNode node);
internal abstract void OnNodeDeActive (GuideNode node);
}
}

View File

@@ -0,0 +1,3 @@
fileFormatVersion: 2
guid: c7e9b6602d254918baeac62f7056ed9c
timeCreated: 1709625796

View File

@@ -0,0 +1,33 @@
using UnityEngine.UI;
namespace System.Guide.TriggerModel
{
public class ScreenTouchTrigger : BaseGuideTrigger
{
public Button _Button;
private GuideNode _curGuideNode;
private void Awake ()
{
this._Button.onClick.AddListener (OnTrigger);
this._Button.gameObject.SetActive (false);
}
private void OnTrigger ()
{
this._curGuideNode.NextNode ();
}
internal override void OnNodeActive (GuideNode node)
{
this._curGuideNode = node;
this._Button.gameObject.SetActive (true);
}
internal override void OnNodeDeActive (GuideNode node)
{
this._curGuideNode = null;
this._Button.gameObject.SetActive (false);
}
}
}

View File

@@ -0,0 +1,3 @@
fileFormatVersion: 2
guid: f5401be55d8c432a87e152f9bfc119d7
timeCreated: 1709625755