private void OnEnable() { if (telloVideoTexture == null) { telloVideoTexture = FindObjectOfType <TelloVideoTexture>(); } }
private void Start() { if (telloVideoTexture == null) { telloVideoTexture = FindObjectOfType <TelloVideoTexture>(); } Tello.StartConnecting(); }
private void Start() { if (telloVideoTexture == null) { telloVideoTexture = FindObjectOfType <TelloVideoTexture>(); } Tello.startConnecting(); //バーチャルドローンの初期位置指定 Drone_Yup_Virtual.transform.position = new Vector3(0, 1.1f, 0); }
override protected void Awake() { if (!isLoaded) { DontDestroyOnLoad(this.gameObject); isLoaded = true; } base.Awake(); Tello.onConnection += Tello_onConnection; Tello.onUpdate += Tello_onUpdate; Tello.onVideoData += Tello_onVideoData; if (telloVideoTexture == null) { telloVideoTexture = FindObjectOfType <TelloVideoTexture>(); } }
public void CustomAwake(SceneManager sceneManager, InputController inputController) { this.sceneManager = sceneManager; this.inputController = inputController; try { telloModel = transform.Find("Tello Model"); ground = transform.Find("Ground"); telloGround = transform.Find("Tello Ground"); flightPointsParent = GameObject.Find("Track Points").transform; } catch { Debug.Log("Missing a gameObject"); } if (telloVideoTexture == null) { telloVideoTexture = FindObjectOfType <TelloVideoTexture>(); } }
public void CustomAwake() { sceneManager = FindObjectOfType <SceneManager>(); inputController = FindObjectOfType <InputController>(); try { telloModel = transform.Find("Tello Model"); ground = transform.Find("Ground"); telloGround = transform.Find("Tello Ground"); flightPointsParent = GameObject.Find("Track Points").transform; //telloHeight = GameObject.Find("tello (Height)").transform; } catch { Debug.Log("Missing a gameObject"); } if (telloVideoTexture == null) { telloVideoTexture = FindObjectOfType <TelloVideoTexture>(); } }