Esempio n. 1
0
    private void ConfigureMenuItem(GameObject instance, MenuItem template)
    {
        MenuItemController controller = instance.GetComponent <MenuItemController>();

        if (!(controller is null))
        {
            controller.SetIcon(template.itemIcon);
            controller.SetFilename(template.itemName);
            controller.SetFiletype(template.itemType);
            controller.nextScreen = template.screenPrefab;
        }
    }