void AiInitiatedBattle(GridUnit gridUnit) { HeroController heroController = (HeroController)gridUnit; heroController.ClearInteractionData(); HeroInteractionHook hook = heroController.GetComponentInChildren <HeroInteractionHook>(); GameReferencesManager.instance.PrepareInteractionWithHero(hook.Items); GameReferencesManager.instance.LoadTargetScene(targetScene); }
public InteractWithHeroInteraction(string targetScene, HeroInteractionHook heroInteractionHook) { this.targetScene = targetScene; this.heroInteractionHook = heroInteractionHook; }