public MainPage()
        {
            InitializeComponent();
            SupportedOrientations = SupportedPageOrientation.PortraitOrLandscape;

            ControlsModule.Init();
            global::Xamarin.Forms.Forms.Init();
            LoadApplication(new XFExtensions.Samples.App());
        }
Exemple #2
0
    public override void Awake()
    {
        base.Awake();
#if UNITY_EDITOR || !MOBILE_PLATFORM
        module = new MouseControlModule(this);
#elif UNITY_ANDROID
        module = new TouchControlModule(this);
#endif
    }