initMenu() public method

public initMenu ( ) : void
return void
 void Update()
 {
     if (UpdateNow == true)
     {
         UpdateNow = false;
         WindowDetect.ContextUIUse = ((UWCharacter.InteractionModeTalk == UWCharacter.InteractionMode) || (UWCharacter.InteractionModePickup == UWCharacter.InteractionMode) || (UWCharacter.InteractionModeUse == UWCharacter.InteractionMode));    //Only context in use or pickup
         for (int i = 1; i <= 5; i++)
         {
             if (i != UWCharacter.InteractionMode)
             {                //Off version
                 Controls[i].texture = Resources.Load <Texture2D> (_RES + "/HUD/lfti/lfti_" + (i * 2).ToString("0000"));
             }
             else
             {                //On Version
                 Controls[i].texture = Resources.Load <Texture2D> (_RES + "/HUD/lfti/lfti_" + ((i * 2) + 1).ToString("0000"));
             }
         }
         if (UWCharacter.InteractionMode == UWCharacter.InteractionModeOptions)
         {
             OptionsMenu.gameObject.SetActive(true);
             OptionsMenu.initMenu();
             this.gameObject.SetActive(false);
         }
     }
 }
Ejemplo n.º 2
0
 public override void Update()
 {
     base.Update();
     if (UpdateNow == true)
     {
         UpdateNow = false;
         WindowDetect.ContextUIUse = ((UWCharacter.InteractionModeTalk == UWCharacter.InteractionMode) || (UWCharacter.InteractionModePickup == UWCharacter.InteractionMode) || (UWCharacter.InteractionModeUse == UWCharacter.InteractionMode));    //Only context in use or pickup
         for (int i = 1; i <= 5; i++)
         {
             if (i != UWCharacter.InteractionMode)
             {                //Off version
                 //Controls[i].texture= lfti.LoadImageAt((i*2));
                 SetImage(ref Controls[i], i * 2);
             }
             else
             {                //On Version
                 //Controls[i].texture= lfti.LoadImageAt(((i*2)+1));
                 SetImage(ref Controls[i], (i * 2) + 1);
             }
         }
         if (UWCharacter.InteractionMode == UWCharacter.InteractionModeOptions)
         {
             if (UWCharacter.Instance.MouseLookEnabled)
             {
                 WindowDetectUW.SwitchFromMouseLook();
             }
             OptionsMenu.gameObject.SetActive(true);
             OptionsMenu.initMenu();
             this.gameObject.SetActive(false);
         }
     }
 }