Exemplo n.º 1
0
 private void OnTriggerEnter(Collider other)
 {
     if (other.tag == "Sphere")
     {
         sphere.color = other.GetComponent <Sphere>().color;
         sphere.ColorChange();
         other.GetComponent <Sphere>().color = color;
         other.GetComponent <Sphere>().ColorChange();
         color = sphere.color;
         StartCoroutine(Wait(other));
     }
 }