Example #1
0
    // Use this for initialization
    void Start()
    {
        //baseNote = Random.Range (80, 160);
        resetter    = Random.Range(0.1f, 1f);
        changeLight = false;
        resetTime   = 0;
        //Load text at beginning
        //score1 = scoreFile1.text;
        //lit = GetComponentInChildren<Light>();
        //lit.intensity = 5.0f;
        pitch    = Random.Range(0, 15);
        pitchAdd = 0;
        mod      = Random.Range(3, 5);

        RTcmix = GameObject.Find("RTcmixmain").GetComponent <rtcmixmain> ();
        cam    = Camera.main.transform;
        if (RTcmix == null)
        {
            Debug.Log("Error! No RTcmixmain prefab object in scene");
        }
        else
        {
            RTcmix.initRTcmix(objno);
            StartCoroutine(LateStart(0.1f));
        }
    }
Example #2
0
 // Use this for initialization
 void Start()
 {
     //Load text at beginning
     //score1 = scoreFile1.text;
     talkedTo = 1;
     RTcmix   = GameObject.Find("RTcmixmain").GetComponent <rtcmixmain> ();
     if (RTcmix == null)
     {
         Debug.Log("Error! No RTcmixmain prefab object in scene");
     }
     else
     {
         RTcmix.initRTcmix(objno);
         StartCoroutine(LateStart(0.1f));
     }
 }