Beispiel #1
0
 protected override void Start()
 {
     base.Start();
     transform.localScale          = new Vector3(0.2f, 0.2f, 0.2f);
     actionObjectMenu              = MenuManager.Instance.ActionObjectMenuSceneEditor.gameObject.GetComponent <ActionObjectMenu>();
     actionObjectMenuProjectEditor = MenuManager.Instance.ActionObjectMenuProjectEditor.gameObject.GetComponent <ActionObjectMenuProjectEditor>();
 }
 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();
     }
 }
 protected virtual void Start()
 {
     actionObjectMenu = MenuManager.Instance.ActionObjectMenuSceneEditor.gameObject.GetComponent <ActionObjectMenu>();
     actionObjectMenuProjectEditor = MenuManager.Instance.ActionObjectMenuProjectEditor.gameObject.GetComponent <ActionObjectMenuProjectEditor>();
 }