Exemplo n.º 1
0
 public void NewColors()
 {
     GlobalState.I.Colors = GradientGenerator.RandomGradient();
     recolor.fillGradient.Override(GlobalState.I.Colors);
     Debug.Log(GlobalState.I.Colors.colorKeys[0].color);
     GlobalState.I.BaseColor = (Vector4)UnityEngine.Random.ColorHSV(0, 1, 1, 1, 1, 1, 1, 1) * 2.5f;
     waveStick.GetComponent <Renderer>().material.SetColor(emissionId, GlobalState.I.BaseColor);
 }
Exemplo n.º 2
0
 private void SetNewGradient()
 {
     recolor.fillGradient.value = GradientGenerator.RandomGradient();
 }