I see there is probably no way to auto pull triggers by default with this script for animation. However since the Trigger section does not have any comments on how it should be handled in this class, I'm hoping to get some idea on what to place within the trigger case. Currently I am using an RPC from the characters controller script but I feel I can better optimize and make the code more efficient by adding it to the SerializeData?
!
switch (parameter.Type)
{
case ParameterType.Bool:
stream.SendNext(this.m_Animator.GetBool(parameter.Name));
break;
case ParameterType.Float:
stream.SendNext(this.m_Animator.GetFloat(parameter.Name));
break;
case ParameterType.Int:
stream.SendNext(this.m_Animator.GetInteger(parameter.Name));
break;
case ParameterType.Trigger:
break;
I really love this script and I would hate to have to use a RPC for a trigger (anim property) if there is a more efficient way to use serialization within this class I would love it if someone could give me an example using it with a trigger 