12345678910111213141516171819202122 |
- using RayNeo.Tool;
- using UnityEngine;
- using UnityEngine.SceneManagement;
- public class DoubleTabBackSceneCtrl : MonoBehaviour
- {
- public void OnDoubleTapCallBack()
- {
- SceneManager.LoadScene("SampleMain");
- }
- void Start()
- {
- TouchEventCtrl.Instance.OnDoubleTap += OnDoubleTapCallBack;
- }
- private void OnDestroy()
- {
- TouchEventCtrl.Instance.OnDoubleTap -= OnDoubleTapCallBack;
- }
- }
|