// Use this for initialization void Start() { if (scaleObject == null) { _CheckSetting("not seted the halo obejct.", true); } tm = TurksManager.instance; if (tm == null) { _CheckSetting("not found the turk manager.", true); } if (showPointObject != null) { render = showPointObject.GetComponent <Renderer>(); } if (showOrHideObject != null) { showOrHideObject.SetActive(false); } if (debugFlag) { jpSignal = new JetPoint(); jpSignal.trans = transform; jpSignal.size = 0.1f; } }
public void Add() { if (tracker == null) { _CheckSetting("not seted the tracker transform."); } if (turkCamera == null) { _CheckSetting("not seted the turk camera."); } if (detector == null) { _CheckSetting("not seted the jet button detector."); return; } if (airValveController == null) { _CheckSetting("not set the air valve controller."); } if (TurksManager.instance != null) { turkManager = TurksManager.instance; turkManager.AddTurk(tracker, turkCamera, haloDirection, airValveController, detector.jetArduinoSerialPortName); } else { _CheckSetting("not found the turk manager"); } }
void Awake() { if (TurksManager.instance == null) { TurksManager.instance = this; } else { if (TurksManager.instance != this) { Destroy(this); } } }