Im trying to set a duration to my debuff with boolean
void ApplySlow(Transform target) {
AI motor = target.GetComponent<AI> ();
bool slowed = false;
if (!slowed) {
motor.speed = (motor.speed * SlowMultiplier);
slowed = true;
}
Comment
Your answer
![](https://koobas.hobune.stream/wayback/20220612145902im_/https://answers.unity.com/themes/thub/images/avi.jpg)
Follow this Question
Related Questions
Animation set duration 0 Answers
How do I show "Duration in" and "Duration out" for the transition graph in the inspector window 0 Answers
Testing Duration With Unit Tests 0 Answers
How to make player jump smaller distance if space is pressed for shorter duration? 1 Answer
Coroutine working as update, manage duration, and more events in one coroutine 1 Answer