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