using UnityEngine; using System.Collections; public class PlayerCC : MonoBehaviour { private Material mat; void Start () { mat = GetComponent<MeshRenderer>().material; } void Update () { mat.color = Color.Lerp(mat.color, Color.red, Time.deltaTime); } }
Copyright 2014-2025 https://www.php.cn/ All Rights Reserved | php.cn | 湘ICP备2023035733号