Fixed conditional compilation

- Added UNITY_IOS && !UNITY_EDITOR instead of UNITY_IOS
- Added UNITY_ANDROID && !UNITY_EDITOR instead of UNITY_ANDROID
- All that because Unity defines both while running in the editor, and we do not want it to crash