Hi all
Away from ORK, I'm try to catch some enemy with my trap.
After i catch some random count of that prefabs , i want to use ORK to make them in enemy group with a turnbased battel.
I know that its not a good way to do that via script , but i take about 3 month to make my game , and now i want to use ORK in my Battle , how can i do that via script ? I need all detail to do that becuse i'm new in ORK ;/
Once you have a group, you can add it to a Battle component and start the battle using this code:
BattleComponent battle = gameObject.GetComponent<BattleComponent>();
battle.StartGroup(group, null);
The gameObject is naturally the game object you've added the Battle component.
The group is your initialized Group.
The null argument can be repaced by a class instance implementing the IEventStarter interface, it'll get notified when the battle ends.
If you're enjoying my products, updates and support, please consider supporting me on patreon.com!
Can i make my own enemy ( example 3 bird ) already in scens to join battle ? And how can i add combatants to it ?
combatant.GameObject = yourGameObject;
The how-to also explains about creating groups and joining combatants to them (if they're already created).
If you're enjoying my products, updates and support, please consider supporting me on patreon.com!
its work now :)
dont go away ;)