Advertisement
dantepw

Tiles Script

Dec 2nd, 2014
187
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.31 KB | None | 0 0
  1. using UnityEngine;
  2. using System.Collections;
  3.  
  4. public class Tile : MonoBehaviour
  5. {
  6.    
  7.     public float r, g, b;
  8.     public bool touch;
  9.    
  10.     void Start ()
  11.     {
  12.         r = Random.Range (0.1f, 1f);
  13.         g = Random.Range (0.1f, 1f);
  14.         b = Random.Range (0.1f, 1f);
  15.  
  16.  
  17.         this.renderer.material.color = new Color (r, g, b);
  18.     }
  19. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement