using System;
using UnityEngine;

// Token: 0x020000F0 RID: 240
public class RandomMaterial : MonoBehaviour
{
	// Token: 0x0600154E RID: 5454 RVA: 0x0019840D File Offset: 0x0019660D
	public void Start()
	{
		this.ChangeMaterial();
	}

	// Token: 0x0600154F RID: 5455 RVA: 0x00198415 File Offset: 0x00196615
	public void ChangeMaterial()
	{
		this.targetRenderer.sharedMaterial = this.materials[Random.Range(0, this.materials.Length)];
	}

	// Token: 0x0400252B RID: 9515
	public Renderer targetRenderer;

	// Token: 0x0400252C RID: 9516
	public Material[] materials;
}
