private bool RightClickOnNPC() { RaycastHit2D hit = CastRayFromMouseToWorld(); if (!GameCorePhysics2D.HasHit(hit)) { return(false); } IClickable clickable = hit.transform.GetComponent <IClickable>(); if (clickable == null) { return(false); } clickable.OnRightClick(); return(true); }