public override void Start() { base.Start(); _sideMenu = new SideMenu("Renderers", new[] { "Forward", "Deferred", "Light PrePass" }, 0); _sideMenu.SelectionChanged += SetRenderSelected; }
public override void Start() { var camera = Camera.Main; m_Behaviours = new Behaviour[] { camera.GetComponent <ControllerSwitcher>(), camera.AddComponent <PostProcessSwitcher>(), camera.AddComponent <RendererSwitcher>(), camera.AddComponent <VRSwitcher>() }; m_SideMenu = new SideMenu(null, new[] { "Controls", "Post Process", "Renderers", "Virtual Reality", "Cancel" }, -1); m_SideMenu.SelectionChanged += OnSelectionChanged; m_SideMenu.SetHorizontal(false); m_FPSPosition = new Vector2(Screen.WidthPerTwo - 5, 15); OnSelectionChanged(-1); }