public void OnMouseExit() { if (GameController.OrderlyInScene && IsActionActive && !GameController.InMenuScreen) { RemoveHighlight(); MouseCursorController.SetCursorToIdle(); } }
private void OnMouseExit() { if (IsActive) { foreach (var mat in HighlightMaterials) { mat.shader = StandardShader; } Destroy(PopUpUI); CursorCtrl.SetCursorToIdle(); } }