Hi, I have a question about ConditionObserver.
I attached ConditionObserver to object.
I set a variable as a condition, like Variable["something"] == true.
Then I set a sequence like AnimatorBool(AnimParameterName, true).
The object ConditionObserver attached has Animator, so I think AnimParameterName becomes true
when variable "something" is true, but it doesn't.
Do I miss something?
Maybe the object should be speaker or listener? Then how should I set the object as speaker or listener?
Thanks.
I have a question about ConditionObserver.
Re: I have a question about ConditionObserver.
Hi,
ConditionObserver doesn't provide a way to specify a default subject, so you'll need to provide the subject to AnimatorBool(). Example:
AnimatorBool(AnimatorParameterName, true, SomeGameObjectName)
ConditionObserver doesn't provide a way to specify a default subject, so you'll need to provide the subject to AnimatorBool(). Example:
AnimatorBool(AnimatorParameterName, true, SomeGameObjectName)
Re: I have a question about ConditionObserver.
It worked!
Thanks Tony!
Thanks Tony!
Re: I have a question about ConditionObserver.
Glad to help!