public void AddAnimatorVarSetRequest(AnimatorVarSetRequest a) { if (a == null) { throw new Exception("Animator Variable Set Request cannot be null"); } animatorVarSetRequests.Add(a); }
/* Parameters: * a: the animator variable to change, and the value to change it to * gameObject: the gameObject to change * * Description: * helper function that changes the animator variable specified by 'a' to the value specified by 'a', for the gameObject. */ ///@TODO: fix animator variables setting, currently you cannot set animation states with the ObjectHandler. private static void SetAnimatorVariable(AnimatorVarSetRequest a, GameObject gameObject) { Animator animator = gameObject.GetComponent <Animator>(); }