Exemple #1
0
 protected abstract LinearMenuSelect _Initialize(
     LinearMenuSelect prefab,
     List <MenuItemUIModel> models,
     bool cancelable    = false,
     string moveSound   = null,
     string selectSound = null,
     string cancelSound = null
     );
Exemple #2
0
 public static LinearMenuSelect Initialize(
     LinearMenuSelect prefab,
     List <MenuItemUIModel> models,
     bool cancelable    = false,
     string moveSound   = null,
     string selectSound = null,
     string cancelSound = null
     )
 {
     return(prefab._Initialize(
                prefab, models, cancelable, moveSound, selectSound, cancelSound
                ));
 }
Exemple #3
0
        protected override LinearMenuSelect _Initialize(
            LinearMenuSelect prefab,
            List <MenuItemUIModel> models,
            bool cancelable    = false,
            string moveSound   = null,
            string selectSound = null,
            string cancelSound = null
            )
        {
            HorizontalMenuSelectUI instance = SpawnManager
                                              .SpawnCanvasElement(prefab.gameObject, 5)
                                              .GetComponentWithError <HorizontalMenuSelectUI>();

            instance.cancelable = cancelable;

            instance.moveSound   = moveSound;
            instance.selectSound = selectSound;
            instance.cancelSound = cancelSound;

            CreateMenuItems(models, instance);

            return(instance);
        }