summaryrefslogtreecommitdiff
path: root/ActiveRagdoll/Assets/Scripts/MatColor.cs
blob: a12c6531127db99e53c7cad9fdae15debfe6345c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
using System.Collections;
using System.Collections.Generic;
using UnityEngine;


public class MatColor : MonoBehaviour
{
    public Color color;


    private void Start()
    {
        var renderer = GetComponent<Renderer>();
        if(renderer != null)
        {
            renderer.material.color = color;
        }
        
    }
}