コード例 #1
0
 private void SubscribeToSearchEvents()
 {
     ViewModel.SearchInCooldown    += GameManagerViewModelOnSearchInCooldown;
     ViewModel.SearchInventoryFull += GameManagerViewModelOnSearchInventoryFull;
     ViewModel.SearchOutOfRange    += GameManagerViewModelOnSearchOutOfRange;
     ViewModel.SearchSuccess       += GameManagerViewModelOnSearchSuccess;
     // Add also handlers to report which items the user gained after the animation
     SpinPokestopImage.Completed += (s, e) => ShowGatheredItemsMenu.Begin();
 }
コード例 #2
0
        private void SubscribeToSearchEvents()
        {
            ViewModel.SearchInCooldown    += GameManagerViewModelOnSearchInCooldown;
            ViewModel.SearchInventoryFull += GameManagerViewModelOnSearchInventoryFull;
            ViewModel.SearchOutOfRange    += GameManagerViewModelOnSearchOutOfRange;
            ViewModel.SearchSuccess       += GameManagerViewModelOnSearchSuccess;
            // Add also handlers to report which items the user gained after the animation
            SpinPokestopImage.Completed += (s, e) => ShowGatheredItemsMenu.Begin();

            ViewModel.ShowModifierDetails += GameManagerViewModelOnShowModifierDetails;
            ViewModel.HideModifierDetails += GameManagerViewModelOnHideModifierDetails;

            ViewModel.AddModifierSuccess            += GameManagerViewModelOnAddModifierTooFarAwayAddModifierSuccess;
            ViewModel.AddModifierTooFarAway         += GameManagerViewModelOnAddModifierTooFarAway;
            ViewModel.AddModifierAlreadyHasModifier += GameManagerViewModelOnAddModifierFortAlreadyHasModifier;
            ViewModel.AddModifierNoItemInInventory  += GameManagerViewModelOnAddModifierNoItemInInventory;
        }