adding UNITY_EDITOR check before AndroidPause and AndroidResume invocations.