Exemplo n.º 1
0
    void OnClick()
    {
        if (SettingManager.Instance.FirstIn == 1)
        {
            FlashUI.PopUp();
            return;
        }

        if (!string.IsNullOrEmpty(levelName))
        {
            Application.LoadLevel(levelName);
        }
    }
Exemplo n.º 2
0
    void OnClick()
    {
        Debug.Log("SettingManager.Instance.FirstIn " + SettingManager.Instance.FirstIn);
        if (SettingManager.Instance.FirstIn == 1)
        {
            main.SetActive(false);
            FlashUI.PopUp();
            return;
        }

        if (!string.IsNullOrEmpty(levelName))
        {
            Application.LoadLevel(levelName);
        }
    }