Ejemplo n.º 1
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);
        }
Ejemplo n.º 2
0
 public InteractWithHeroInteraction(string targetScene, HeroInteractionHook heroInteractionHook)
 {
     this.targetScene         = targetScene;
     this.heroInteractionHook = heroInteractionHook;
 }