Let's start by creating the class for Game on iOS, as follows:
- In the WhackABox.iOS project root, add a new file called Game.cs.
- Add the code to the class, as shown in the following snippet:
using Urho;
namespace WhackABox.iOS
{
public class Game : WhackABox.Game
{
public Game(ApplicationOptions options) : base(options)
{
}
}
}
Since the abstract base class requires a constructor to be called, we need to extend that constructor into our platform-specific class. Now, let's do the same thing for Android.