Пример #1
0
 void Update()
 {
     //The Ping sends when ball color changes
     if ((sphereObj.GetComponent <Renderer>().material.color) == Color.green)
     {
         subject.Notify();
     }
     if ((sphereObj.GetComponent <Renderer>().material.color) == Color.white)
     {
         subject.Notify2();
     }
 }