25 lines
413 B
C#
Raw Normal View History

2025-09-08 14:51:28 +08:00
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;
}
}