public void TryToStartTownTutorial(GameObject go) { TutorialTriggerTown trigger = go.GetComponent <TutorialTriggerTown>(); if (trigger != null && trigger.enabled) { trigger.TryToStartTutorial(); } }
void OnClickHUDInventoryButton(GameObject go) { TutorialTriggerTown trigger = NGUITools.FindInParents <TutorialTriggerTown>(this.gameObject); if (trigger != null) { trigger.TryToCloseTutorial(); } UIManager.Instance.OpenUI("FCUIInventory"); }