internal void RemoveSelf() { if (IsRemoveSelf == false) { IsRemoveSelf = true; _Instance = null; Destroy(gameObject); } }
void OnTriggerEnter(Collider other) { XkPlayerCtrl playerScript = other.GetComponent <XkPlayerCtrl>(); if (playerScript == null) { return; } XKGameStageCtrl.GetInstance().MoveIntoStageUI(); gameObject.SetActive(false); }
// Use this for initialization void Start() { _Instance = this; StageUI = StageObj.GetComponent <UITexture>(); HiddeStageObj(); }
// Use this for initialization internal void Init() { _Instance = this; StageUI = StageObj.GetComponent <UITexture>(); HiddeStageObj(); }