public bool Attach(IActorAttachment attachment, object context, ActorAttachArgs args) { DebugUtility.AssertFormat(attachment.owner == null, "The owner of attachment ({0}) must be null (Actor : [{1}])", attachment.name, name); if (FindJoint(attachment.jointName, true, out var info)) { info.attachments.Add(attachment); attachment.OnAttach(this, context, args); return(true); } return(false); }