public void TryToStartTownTutorial(GameObject go)
    {
        TutorialTriggerTown trigger = go.GetComponent <TutorialTriggerTown>();

        if (trigger != null && trigger.enabled)
        {
            trigger.TryToStartTutorial();
        }
    }
Exemplo n.º 2
0
    void OnClickHUDInventoryButton(GameObject go)
    {
        TutorialTriggerTown trigger = NGUITools.FindInParents <TutorialTriggerTown>(this.gameObject);

        if (trigger != null)
        {
            trigger.TryToCloseTutorial();
        }
        UIManager.Instance.OpenUI("FCUIInventory");
    }