Unity adapter for pubnative API

This is an adapter done for Unity for easy access to Pubnative API.
can't we use here a ternary operator here? i.e. `MiniJSON.lastErrorIndex = success ? -1 : index;`