30 lines
736 B
C#
30 lines
736 B
C#
|
|
using UnityEngine;
|
||
|
|
using UVC.Tab;
|
||
|
|
using UVC.UI.Commands;
|
||
|
|
using UVC.UI.Toolbar;
|
||
|
|
|
||
|
|
namespace EnglewoodLAB
|
||
|
|
{
|
||
|
|
public class SetLibraryControllerCommand : ICommand
|
||
|
|
{
|
||
|
|
private SideTabBar sideTabBar;
|
||
|
|
private GameObject stage;
|
||
|
|
public SetLibraryControllerCommand(SideTabBar sideTabBar)
|
||
|
|
{
|
||
|
|
this.sideTabBar = sideTabBar;
|
||
|
|
}
|
||
|
|
public void Execute(object parameter = null)
|
||
|
|
{
|
||
|
|
|
||
|
|
stage = SceneMain.Instance.Stage;
|
||
|
|
|
||
|
|
var sideTabBarAccordion = sideTabBar.GetComponentInChildren<SideTabBarAccordion>(true);
|
||
|
|
sideTabBarAccordion.SetStage(stage);
|
||
|
|
|
||
|
|
sideTabBarAccordion.isDrag += AppMain.Instance.cameraController.SetEnable;
|
||
|
|
|
||
|
|
}
|
||
|
|
}
|
||
|
|
}
|
||
|
|
|