12345678910111213141516171819202122232425262728 |
- using System.Collections;
- using System.Collections.Generic;
- using UnityEngine;
- public class VufoiraImgManager : MonoBehaviour {
- [SerializeField]
- private VufoiraImageTarget ImagTracker;
- private bool isRunning = false;
- void Start () {
-
- MessageCenterController.Instance.Register(GameEnum.MESSAGE_SEND_CHANGE_TRACK_IMAGE, ChangeTrack);
- }
- protected void OnDestroy()
- {
- MessageCenterController.Instance.UnRegister(GameEnum.MESSAGE_SEND_CHANGE_TRACK_IMAGE, ChangeTrack);
- }
-
- private void ChangeTrack(System.Object datas)
- {
- isRunning = (bool)datas;
- CDebug.Log("切换当前的识别状态" + isRunning);
-
- }
- }
|