Esempio n. 1
0
        private void EmgButton_Clicked(object sender, TextButton.ClickedEventArgs e)
        {
#if ANDROID
            MainActivity.Instance.RequestPermissions(new[] {
                Manifest.Permission.AccessCoarseLocation,
                Manifest.Permission.AccessFineLocation,
                Manifest.Permission.BluetoothAdmin
            }, 3, granted => { _permissionsGranted = granted; });
#endif
        }
Esempio n. 2
0
 private void S_Clicked(object sender, TextButton.ClickedEventArgs e)
 {
     if (_jumpingButton == null)
     {
         _jumpingButton      = (TextButton)sender;
         _jumpLabel.Position = new Vector2(_jumpLabel.Position.X, _jumpingButton.Position.Y + (_jumpingButton.Size.Y - _jumpLabel.Size.Y) / 2);
     }
     else if (_jumpingButton == sender)
     {
         _jumpingButton = null;
     }
     else if (_shootingButton == null)
     {
         _shootingButton      = (TextButton)sender;
         _shootLabel.Position = new Vector2(_shootLabel.Position.X, _shootingButton.Position.Y + (_shootingButton.Size.Y - _shootLabel.Size.Y) / 2);
     }
     else if (_shootingButton == sender)
     {
         _shootingButton = null;
     }
     UpdateButtons();
 }