Search Unity

Mixing coroutine and asunc keyword

Discussion in 'Testing & Automation' started by neiji93600, Feb 13, 2022.

  1. neiji93600

    neiji93600

    Joined:
    Jan 12, 2021
    Posts:
    1
    Hi, i wanted to combine asynchronous events and startcoroutine behaviours in scripts for a fighting game. Here with this link you can see use of startcoroutine for a fighting game (maybe i wont use timers but frames for checking timed events) :
    https://github.com/Acre-Entertainme...ipts/OurScripts/Fight/FightEnemyController.cs

    My goal is to set priority for coroutines in order to have peiority for events like the case of higher priority for combo than simple attack. Of course, there are special cases of characters specific priority for some attacks but im not yalking about that.