Hi,
I want to DoSomething() only if someone is barking.
is there a bool for this?
Thanks!
isAnyoneBarking
isAnyoneBarking
Jesus is the answer to every problem.
https://www.gotquestions.org/know-Jesus.html
https://store.steampowered.com/app/2151420/Word/ Longest typing game on Steam OO
https://www.gotquestions.org/know-Jesus.html
https://store.steampowered.com/app/2151420/Word/ Longest typing game on Steam OO
Re: isAnyoneBarking
There's no such property, but you could add a small script to the Dialogue Manager that has OnBarkStart and OnBarkEnd methods, something like:
Code: Select all
public class BarkCounter : MonoBehaviour
{
private int numBarksActive = 0;
public bool isAnyoneBarking => numBarksActive > 0;
void OnBarkStart(Transform actor) { numBarksActive++; }
void OnBarkEnd(Transform actor) { numBarksActive--; }
}
Re: isAnyoneBarking
Thank you sir
Jesus is the answer to every problem.
https://www.gotquestions.org/know-Jesus.html
https://store.steampowered.com/app/2151420/Word/ Longest typing game on Steam OO
https://www.gotquestions.org/know-Jesus.html
https://store.steampowered.com/app/2151420/Word/ Longest typing game on Steam OO