Commit e0b001c8 authored by Nathan Hertz's avatar Nathan Hertz

Updated AtmosphereDecay

parent 40d58a49
......@@ -15,12 +15,13 @@ public class AtmosphereDecay : MonoBehaviour {
void Start()
{
ColorSet();
gameObject.GetComponent<Renderer>().material.color = new Color(color.r, color.g, color.b, color.a);
}
// Update is called once per frame
void OnCollisionEnter (Collision col) {
gameObject.GetComponent<Renderer>().material.color = new Color(color.r + 0.1f, color.g, color.b, color.a);
gameObject.GetComponent<Renderer>().material.color = new Color(color.r += 0.1f, color.g, color.b, color.a);
if (gameObject.GetComponent<Renderer>().material.color.r == 1f)
{
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment