This commit is contained in:
happy44300
2018-10-30 19:08:18 +01:00
parent d475d39132
commit db5d16190c
27 changed files with 822 additions and 304 deletions
+23
View File
@@ -0,0 +1,23 @@
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class RGB : MonoBehaviour {
[SerializeField]
public float Speed = 1;
private Renderer rend;
// Update is called once per frame
void Update()
{
rend = gameObject.GetComponent<Renderer>();
rend.material.SetColor("_Color", HSBColor.ToColor(new HSBColor(Mathf.PingPong(Time.time * Speed, 1), 1, 1)));
}
}
+11
View File
@@ -0,0 +1,11 @@
fileFormatVersion: 2
guid: 27b928e8d27c1914cab981bd83f0a867
MonoImporter:
externalObjects: {}
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:
assetBundleName:
assetBundleVariant: