using System.Collections; using System.Collections.Generic; using UnityEngine; public class MianQian : MonoBehaviour { public Color before; public Color after; public Material material; private void Start() { ChangeBefore(); } public void ChangeBefore() { material.color = before; } public void ChangeAfter() { material.color= after; } }