Exemple #1
0
 public void Update()
 {
     if (HighLogic.LoadedSceneIsFlight)
     {
         if (camin == null)
         {
             camin = FindObjectOfType <CamInsight>();
         }
         if (camin != null)
         {
             if (camin.estaactivo)
             {
                 if (buttonup)
                 {
                     FindObjectOfType <CamInsight>().OnUp();
                 }
                 if (buttondown)
                 {
                     FindObjectOfType <CamInsight>().OnDown();
                 }
                 if (buttonleft)
                 {
                     FindObjectOfType <CamInsight>().OnLeft();
                 }
                 if (buttonright)
                 {
                     FindObjectOfType <CamInsight>().OnRight();
                 }
             }
         }
     }
 }
Exemple #2
0
 void Update()
 {
     if (HighLogic.LoadedSceneIsFlight)
     {
         camin = FindObjectOfType <CamInsight>();
         if (camin == null)
         {
             if (MuestraUI.CoolUICanvas != null)
             {
                 MuestraUI.Destroy();
                 guiactivada = false;
             }
             OnDisable();
         }
     }
 }
Exemple #3
0
 public void Start()
 {
     camin = FindObjectOfType <CamInsight>();
 }