Пример #1
0
 private void Start()
 {
     HUDScore            = GameObject.Find("UI").GetComponent <HUDScore>();
     rend                = GetComponent <Renderer>();
     rend.sharedMaterial = material[0];
 }