Esempio n. 1
0
    public MenuCreditState()
    {
        uiObjectsContainer = UIObjectsContainer.getInstance();
        if (uiObjectsContainer == null)
            Debug.LogError("ERROR: uiObjectsContainer is null");

        credits = uiObjectsContainer.go_creditText.GetComponent<Credits>();

        manager = Applicationmanager.GetInstance();
    }
Esempio n. 2
0
    public static UIObjectsContainer getInstance()
    {
        if (instance == null)
        {
            GameObject objet = GameObject.Find("UIObjectsContainer");
            if (objet == null)
            {
                Debug.LogError("ERROR: there is no UIObjectsContainer in this scene");
                return null;
            }

            instance = objet.GetComponent<UIObjectsContainer>();
        }

        return instance;
    }
Esempio n. 3
0
 public MenuMainState()
 {
     uiObjectsContainer = UIObjectsContainer.getInstance();
     if (uiObjectsContainer == null)
         Debug.LogError("ERROR: uiObjectsContainer is null");
 }