void Start() { c = GetComponent <Camera> (); rota = transform.parent; DontDestroyOnLoad(rota.parent.gameObject); frameParent = GameObject.Find("QuadMaster").transform; debugFrame = GameObject.Find("Debug").GetComponent <MeshRenderer> (); hsv = gameObject.AddComponent <HSVtoRGB> (); debugFrame.enabled = false; canvas.SetActive(false); Cursor.visible = false; LoadParameters(); SetSliders(); hasStarted = true; }
// Update is called once per frame void Update() { //,transform.position.y,transform.position.z //cam.gameObject.GetComponent<Contour>().lineColor= HSVtoRGB.HSVToRGB(transform.position.x,.8f,.8f); float h1 = transform.position.y; float h2 = h1 + .33f; if (h2 >= 1f) { h2 -= 1f; } if (skybox) { RenderSettings.skybox.SetColor(skyboxCol1, HSVtoRGB.HSVToRGB(h1, .8f, .8f)); RenderSettings.skybox.SetColor(skyboxCol2, HSVtoRGB.HSVToRGB(h2, .8f, .8f)); } else { if (reakt) { colorObject.GetComponent <MeshRenderer>().material.SetColor(col1Name, _color1); colorObject.GetComponent <MeshRenderer>().material.SetColor(col2Name, reaktC2); } else { if (!particles) { colorObject.GetComponent <MeshRenderer>().material.SetColor(col1Name, HSVtoRGB.HSVToRGB(h1, .8f, .8f)); colorObject.GetComponent <MeshRenderer>().material.SetColor(col2Name, HSVtoRGB.HSVToRGB(h2, .8f, .8f)); } else { colorObject.GetComponent <ParticleSystemRenderer>().material.SetColor(col1Name, HSVtoRGB.HSVToRGB(h1, .8f, .8f)); colorObject.GetComponent <ParticleSystemRenderer>().material.SetColor(col2Name, HSVtoRGB.HSVToRGB(h2, .8f, .8f)); //_Color_copy _Color } } } }
void Start() { HSVConverter = GetComponent <HSVtoRGB> (); SetStartValues(); }
void Start () { HSVConverter = GetComponent<HSVtoRGB> (); dw = GetComponent<DataWrite> (); musics = ShuffleACList (musics); Setup (); }
void Start() { rota = transform.parent; DontDestroyOnLoad(rota.gameObject); hsv = gameObject.AddComponent <HSVtoRGB> (); }