using UnityEngine;
public class TestMaterial : MonoBehaviour
{
public Material test_M;
public Material test_B;
void Update()
{
if (Input.GetKey(KeyCode.S))
{
this.transform.GetComponent<Renderer>().material = test_B;
}
if (Input.GetKey(KeyCode.W))
{
this.transform.GetComponent<Renderer>().material = test_M;
}
}
}