private void OnScreenChanged(GameViewScreen screen) { if (screen != null) { this.OnScreenChanged(screen.safeArea, screen.size); } else { _rect = Rect.zero; } }
private static void OnScreenChanged(GameViewScreen screen) { if (screen != null) { gearImage.image.visible = true; settingsWindow.visible = false; } else { gearImage.image.visible = false; settingsWindow.visible = false; } }