private void Awake() { m_appState = GameObject.FindObjectOfType <AppState>(); m_udpHelper = GameObject.FindObjectOfType <UDPHelper>(); m_scoreMove = GameObject.FindObjectOfType <ScoreMove>(); m_scoremanage = GameObject.FindObjectOfType <scoremanage>(); }
// Use this for initialization void Start() { //TempoInpFld = GetComponent<InputField>(); midimng = GameObject.Find("MIDImanager").GetComponent <MIDImanager>(); scoremove = GameObject.Find("ScoreCanvas/ScoreOrigin").GetComponent <ScoreMove>(); OscCli = GameObject.Find("UdpObject").GetComponent <uOSC.uOscClient>(); Initialize(); }
// Use this for initialization void Start() { obj1 = GameObject.Find("Cylinders/Cylinder_0"); obj2 = GameObject.Find("Cylinders/Cylinder_1"); obj3 = GameObject.Find("Cylinders/Cylinder_2"); obj4 = GameObject.Find("Cylinders/Cylinder_3"); obj5 = GameObject.Find("Cylinders/Cylinder_4"); comp1 = obj1.GetComponent <CyliActwithPETS>(); comp2 = obj2.GetComponent <CyliActwithPETS>(); comp3 = obj3.GetComponent <CyliActwithPETS>(); comp4 = obj4.GetComponent <CyliActwithPETS>(); comp5 = obj5.GetComponent <CyliActwithPETS>(); ScoOri = GameObject.Find("ScoreCanvas/ScoreOrigin"); ScoMov = ScoOri.GetComponent <ScoreMove>(); client = GetComponent <uOscClient>(); //client.Send("/tempo", ScoMov.tempo); TrackSelect(); }