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