Esempio n. 1
0
 public void HideAllMenus()
 {
     if (ActionObjectMenuSceneEditor.CurrentState == SimpleSideMenu.State.Open)
     {
         ActionObjectMenuSceneEditor.Close();
     }
     if (ActionObjectMenuProjectEditor.CurrentState == SimpleSideMenu.State.Open)
     {
         ActionObjectMenuProjectEditor.Close();
     }
     if (ActionPointMenu.CurrentState == SimpleSideMenu.State.Open)
     {
         ActionPointMenu.Close();
     }
     if (PuckMenu.CurrentState == SimpleSideMenu.State.Open)
     {
         PuckMenu.Close();
     }
     if (ActionPointAimingMenu.CurrentState == SimpleSideMenu.State.Open)
     {
         ActionPointAimingMenu.Close();
     }
     if (AddOrientationMenu.CurrentState == SimpleSideMenu.State.Open)
     {
         AddOrientationMenu.Close();
     }
     if (AddJointsMenu.CurrentState == SimpleSideMenu.State.Open)
     {
         AddJointsMenu.Close();
     }
     if (OrientationJointsDetailMenu.CurrentState == SimpleSideMenu.State.Open)
     {
         OrientationJointsDetailMenu.Close();
     }
 }
Esempio n. 2
0
 protected virtual void Start()
 {
     actionPointMenu = MenuManager.Instance.ActionPointMenu.gameObject.GetComponent <ActionPointMenu>();
 }