using UnityEngine;
using System.Collections;

public class ChangeColour : MonoBehaviour {

	Color Red = new Color (1, 0, 0, 0.8f);
	Color alphaRed = new Color(1, 0, 0, 0);


	// Use this for initialization
	void Start () {
		Invoke ("ChgTranspernt", 1);
		Debug.Log ("Start");
	}
	
	// Update is called once per frame
	void Update () {

		renderer.material.color = Color.Lerp (renderer.material.color, Red, 2 * Time.deltaTime);
		Destroy (this.gameObject, 2.5f);
		Debug.Log ("Update");

	}

	void ChgTranspernt()
	{
		renderer.material.color = new Color (1, 0, 0, 0f);
		Debug.Log ("Method");
	}
}
