void Start() { if (leapMaster == null) { leapMaster = (GameObject.FindGameObjectWithTag("LeapMotion") as GameObject).GetComponent(typeof(LeapMaster)) as LeapMaster; } }
void Start() { if (camera == null) { camera = (GameObject.FindGameObjectWithTag("MainCamera") as GameObject).GetComponent(typeof(Camera)) as Camera; } if (leapMaster == null) { leapMaster = (GameObject.FindGameObjectWithTag("LeapMotion") as GameObject).GetComponent(typeof(LeapMaster)) as LeapMaster; } }
// Use this for initialization void Start() { _leapManager = (GameObject.Find("LeapManager") as GameObject).GetComponent(typeof(LeapMaster)) as LeapMaster; }