private Stage GetStageAt(Vector2 globalPosition) { for (int i = 0; i < stages.GetChildCount(); i++) { Stage stage = stages.GetChildOrNull <Stage>(i); Rect2 global = stage.GetGlobalRect(); if (global.HasPoint(globalPosition)) { return(stage); } } return(null); }