using System; using System.Collections; using System.Collections.Generic; using UnityEngine; public class Colour : MonoBehaviour { public List Mats = new List(); void Awake() { //Called once when the player is created GetComponent().material = Mats[UnityEngine.Random.Range(0, Mats.Count)]; //Random material on the list. } }