Advertisement
Guest User

Untitled

a guest
Feb 17th, 2020
85
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.43 KB | None | 0 0
  1. using System.Collections;
  2. using System.Collections.Generic;
  3. using UnityEngine;
  4.  
  5. public class Clickable : MonoBehaviour
  6. {
  7. // Start is called before the first frame update
  8. void Start()
  9. {
  10. Color c = GameObject.Find("Case noire").GetComponent<MeshRenderer>().materials[0].color;
  11. Debug.Log(GetComponent<MeshRenderer>());
  12. }
  13.  
  14. // Update is called once per frame
  15. void Update()
  16. {
  17.  
  18. }
  19. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement