Beispiel #1
0
 public void OnMouseEnter()
 {
     if (IsPotValid())
     {
         RaycastInfo.detectedGameElement = this;
         RaycastInfo.OnPotDetect();
     }
 }
Beispiel #2
0
 public void OnMouseExit()
 {
     if (IsPotValid())
     {
         RaycastInfo.detectedGameElement = null;
         if (BallsManager.Instance.ballToMakeMove != null)
         {
             RaycastInfo.OnPotDetect();
         }
     }
 }