public void Start() { if (script != null) { if (script is IAnimatorEventCalled) { target = script as IAnimatorEventCalled; } else { Debug.LogError("Type not validate for IAnimatorEventCalled with " + script.name); } } }
public void SetTarget(IAnimatorEventCalled target) { this.target = target; }