public MenuCreditState() { uiObjectsContainer = UIObjectsContainer.getInstance(); if (uiObjectsContainer == null) Debug.LogError("ERROR: uiObjectsContainer is null"); credits = uiObjectsContainer.go_creditText.GetComponent<Credits>(); manager = Applicationmanager.GetInstance(); }
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; }
public MenuMainState() { uiObjectsContainer = UIObjectsContainer.getInstance(); if (uiObjectsContainer == null) Debug.LogError("ERROR: uiObjectsContainer is null"); }