Example #1
0
        // -------------------------------------------------------------------------------
        //
        // -------------------------------------------------------------------------------
        protected override void DisposeItem(UnityEngine.Transform item)
        {
            SaveGameSlot panel = item.GetComponent <SaveGameSlot>();

            if (panel != null)
            {
                if (panel.savegame != null)
                {
                    panel.savegame = null;
                    panel.Clicked -= panel_Clicked;
                }
            }
        }
Example #2
0
        // -------------------------------------------------------------------------------
        //
        // -------------------------------------------------------------------------------
        protected override void TemplateInitialize(UnityEngine.GameObject templateInstance, Savegame item)
        {
            SaveGameSlot panel = templateInstance.GetComponent <SaveGameSlot>();

            if (panel != null)
            {
                if (item != null)
                {
                    panel.savegame = item;
                    panel.Clicked += panel_Clicked;
                }
                else
                {
                    panel.ClearDisplay();
                }
            }
        }