public static SaveLoadSlotManager GetInstance() { if (!instance) { instance = GameObject.FindObjectOfType(typeof(SaveLoadSlotManager)) as SaveLoadSlotManager; if (!instance) { ErrorMessages.Instance.MissingSingletoneObject("SaveLoadSlotManager"); } } return(instance); }
public void PushedSavedButton() { SaveLoadSlotManager.GetInstance().SavedButtonPushed(gameObject); }