示例#1
0
        public MainPage()
        {
            InitializeComponent();
            SupportedOrientations = SupportedPageOrientation.PortraitOrLandscape;

            ControlsModule.Init();
            global::Xamarin.Forms.Forms.Init();
            LoadApplication(new XFExtensions.Samples.App());
        }
示例#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
    }