test
This commit is contained in:
@@ -2,15 +2,11 @@ using UnityEngine;
|
||||
|
||||
public class test : MonoBehaviour
|
||||
{
|
||||
// Start is called once before the first execution of Update after the MonoBehaviour is created
|
||||
[SerializeField] private GameObject player;
|
||||
[SerializeField] private Material newMaterial;
|
||||
void Start()
|
||||
{
|
||||
|
||||
player.GetComponent<MeshRenderer>().material = newMaterial;
|
||||
}
|
||||
|
||||
// Update is called once per frame
|
||||
void Update()
|
||||
{
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user