Exemple #1
0
 void Start()
 {
     if (center)
     {
         gameObject.GetComponent <MeshRenderer>().material = player;
     }
     cont       = GameObject.Find("Canvas").GetComponent <panelcontrols>();
     cont.score = 0;
 }