public static SPAnim Create(Animation anim, string clipId) { if (anim == null) { throw new System.ArgumentNullException("anim"); } var a = _pool.GetInstance(); a._controller = anim.AddOrGetComponent <SPLegacyAnimController>(); a._clipId = clipId; return(a); }