Esempio n. 1
0
        private void EncounterAnimationFinished()
        {
            // dispose of encounter animation resources
            _encounterAnimation.AnimationFinished -= EncounterAnimationFinished;
            _encounterAnimation.UnloadContent();
            _encounterAnimation = null;
            EncounterStarted    = false;

            // load battle screen
            var battleScreen = new WildBattleScreen(this, Pokemon.Get(_activeEncounterResult.Id, _activeEncounterResult.Level));

            battleScreen.LoadContent();
            GetComponent <ScreenManager>().SetScreen(battleScreen);
        }
Esempio n. 2
0
 // event handler for the shader's encounter animation
 private void EncounterFlashAnimationFinished()
 {
     _encounterAnimation = new EncounterTransitionAnimation();
     _encounterAnimation.LoadContent();
     _encounterAnimation.AnimationFinished += EncounterAnimationFinished;
 }