public App() { ipPage = new IPPage(); controllerPage = new ControllerPage(); navigationPage = new NavigationPage(ipPage); navigationPage.BarBackgroundColor = new Color(0, 192.0 / 255.0, 255 / 255); navigationPage.BarTextColor = new Color(1, 1, 1); MainPage = navigationPage; ipPage.connectButtonO.Clicked += OnConnectClicked; controllerPage.throttleSliderO.ValueChanged += OnThrottleValueChanged; controllerPage.rollSliderO.ValueChanged += OnRollValueChanged; controllerPage.pitchSliderO.ValueChanged += OnPitchValueChanged; controllerPage.yawSliderO.ValueChanged += OnYawValueChanged; controllerPage.rollZeroButtonO.Clicked += OnRollZeroClicked; controllerPage.pitchZeroButtonO.Clicked += OnPitchZeroClicked; controllerPage.yawZeroButtonO.Clicked += OnYawZeroClicked; }
void Awake() { Instance = this; }