Пример #1
0
    void OnGUI()
    {
        if (!guiEnabled)
        {
            return;
        }

        GUI.Box(new Rect(10, 10, 300, GameMaster.allSaveables.Count * saveableGuiHeight + 20), "Save File Debug - " + GameMaster.allSaveables.Count + " saveables found.");

        List <ISaveable> saveables = new List <ISaveable>();

        saveables.AddRange(GameMaster.allSaveables);
        for (int i = 0; i < saveables.Count; i++)
        {
            ISaveable s = saveables[i];

            GUI.Box(new Rect(12, 30 + i * saveableGuiHeight, 280, saveableGuiHeight), s.Info());
        }
    }