예제 #1
0
 protected abstract LinearMenuSelect _Initialize(
     LinearMenuSelect prefab,
     List <MenuItemUIModel> models,
     bool cancelable    = false,
     string moveSound   = null,
     string selectSound = null,
     string cancelSound = null
     );
예제 #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
                ));
 }
예제 #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);
        }