public void MM_loadSlotInformation(LoadAndCreateMenu newMenu)
    {
        GameObject tmp = GameObject.Find("txtDebug");

        if (tmp && newMenu)
        {
            tmp.GetComponent <Text>().text = "newMenu";
        }
        newMenu.LoadSlotInformation();
    }
Exemple #2
0
    // Use this for initialization
    void Start()
    {
        canvasVarious = new canvasVariousFunctions();
        GameObject tmp = GameObject.Find(s_canvasMainMenu);

        if (tmp)
        {
            menu_Manager = tmp.GetComponent <Menu_Manager> ();
        }

        tmp = GameObject.Find(s_eventSystem);
        if (tmp)
        {
            eventSys = tmp.GetComponent <EventSystem> ();
        }

        tmp = GameObject.Find(s_mainMenuManager);
        if (tmp)
        {
            mainMenuManager = tmp.GetComponent <MainMenu> ();
        }

        tmp = GameObject.Find(s_InputManager);
        if (tmp)
        {
            inputsManager = tmp.GetComponent <MM_MenuInputs> ();
        }

        tmp = GameObject.Find(s_loadMenuManager);
        if (tmp)
        {
            loadMenuManager = tmp.GetComponent <LoadAndCreateMenu> ();
        }

        tmp = GameObject.Find(s_newGameMenuManager);
        if (tmp)
        {
            newGameMenuManager = tmp.GetComponent <LoadAndCreateMenu> ();
        }
    }
 public void MM_EraseAndReplaceSaveSlot(LoadAndCreateMenu loadMenuManager)
 {
     loadMenuManager.EraseAndReplaceSaveSlot();
 }