private Vector3?GetPositionFromMouseClick() { if (RaycastHandler.Update()) { if (ExtendLayerMask.NotGroundMask(RaycastHandler.HitInfo.transform.gameObject.layer)) { return(RaycastHandler.HitInfo.point); } } return(null); }
private bool setPositionFromMouseClick() { //If the ray hits an object if (RaycastHandler.Update()) { if (ExtendLayerMask.NotGroundMask(RaycastHandler.HitInfo.transform.gameObject.layer)) { targetPosition = RaycastHandler.HitInfo.point; return(true); } } return(false); }