コード例 #1
0
    public void HandleNotification(Notification notification)
    {
        IMenuApp app = _apps.Find(x => x.GetInfo().ID == notification.AppId);

        if (MenuAppContainer.current == null || app == null)
        {
            return;
        }
        _dropdown.value = _apps.IndexOf(app);
        bool ok = MenuAppContainer.current.SetView(app.GetRootItem());

        if (ok)
        {
            app.HandleNotification(notification);
        }
    }
コード例 #2
0
 private void RegisterMenuApp(IMenuApp app)
 {
     app.Init(_api.OpenAPI, _api.MenuAPI, _api.HUDAPI);
     MenuApps.Add(app);
 }
コード例 #3
0
 public MenuController(IMenuApp menuApp)
 {
     _menuApp = menuApp;
 }