void Awake()
 {
     modalPanelsystem            = ModalPanelSystem.Instance();
     modalPanelLanguageSelection = ModalPanelLanguageSelection.Instance();
     modalPanelItens             = ModalPanelItens.Instance();
     modalPanelMenu     = ModalPanelMenu.Instance();
     menuSetupLanguages = MenuSetupLanguages.Instance();
 }
Beispiel #2
0
    public static ModalPanelMenu Instance()
    {
        if (!modalPanel)
        {
            modalPanel = FindObjectOfType(typeof(ModalPanelMenu)) as ModalPanelMenu;
            if (!modalPanel)             // Make sure that Modalpanel existes.
            {
                Debug.Log("There needs to be one active ModalPanelMenu Script on a GameObject in your scene");
            }
        }

        return(modalPanel);
    }