Example #1
0
        void EnterTheBattle(HeroController heroController, string targetScene)
        {
            heroController.ClearInteractionData();

            GameReferencesManager.instance.PrepareInteractionWithHero(heroInteractionHook.Items);
            GameReferencesManager.instance.LoadTargetScene(targetScene);
        }
Example #2
0
        void EnterTheBattle(HeroController heroController, string targetScene)
        {
            InteractionHook interactionHook = SceneStateHandler.instance.InteractionHooks
                                              .Find(hook => hook.GetInstanceID() == heroController.currentInteractionHook.GetInstanceID());

            SceneStateHandler.instance.UpdateActiveState(interactionHook.transform.name);
            heroController.ClearInteractionData();

            GameReferencesManager.instance.PrepareInteractionUnit(unitItem, stackSize);
            GameReferencesManager.instance.LoadTargetScene(targetScene);
        }
Example #3
0
        void AiInitiatedBattle(GridUnit gridUnit)
        {
            HeroController heroController = (HeroController)gridUnit;

            heroController.ClearInteractionData();

            HeroInteractionHook hook = heroController.GetComponentInChildren <HeroInteractionHook>();

            GameReferencesManager.instance.PrepareInteractionWithHero(hook.Items);
            GameReferencesManager.instance.LoadTargetScene(targetScene);
        }