Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using UnityEngine;
- using System.Collections;
- public class Tile : MonoBehaviour
- {
- public float r, g, b;
- public bool touch;
- void Start ()
- {
- r = Random.Range (0.1f, 1f);
- g = Random.Range (0.1f, 1f);
- b = Random.Range (0.1f, 1f);
- this.renderer.material.color = new Color (r, g, b);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement