示例#1
0
文件: Tile.cs 项目: R3D87/Match3Game
 public void AddRandomColor()
 {
     colorTileID         = TilesManager.RandomPickColorID();
     rend                = GetComponent <Renderer>();
     rend.enabled        = true;
     rend.sharedMaterial = TilesManager.ColorID[colorTileID];
     //Debug.Log(colorTileID);
 }