Fixed issues in unity client when run on iOS device