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(); } } } } }
void Update() { if (HighLogic.LoadedSceneIsFlight) { camin = FindObjectOfType <CamInsight>(); if (camin == null) { if (MuestraUI.CoolUICanvas != null) { MuestraUI.Destroy(); guiactivada = false; } OnDisable(); } } }
public void Start() { camin = FindObjectOfType <CamInsight>(); }