コード例 #1
0
    // Token: 0x060001C2 RID: 450 RVA: 0x0000722C File Offset: 0x0000542C
    private global::AuthorChJoint AddJoint(global::AuthorChJoint.Kind kind)
    {
        global::AuthorChJoint authorChJoint = base.creation.CreatePeice <global::AuthorChJoint>(kind.ToString(), new Type[0]);

        if (authorChJoint)
        {
            authorChJoint.InitializeFromOwner(this, kind);
            Array.Resize <global::AuthorChJoint>(ref this.myJoints, (this.myJoints != null) ? (this.myJoints.Length + 1) : 1);
            this.myJoints[this.myJoints.Length - 1] = authorChJoint;
        }
        return(authorChJoint);
    }
コード例 #2
0
    // Token: 0x060001CE RID: 462 RVA: 0x00007DD8 File Offset: 0x00005FD8
    internal void OnJointDestroy(global::AuthorChJoint joint)
    {
        if (this.myJoints == null)
        {
            return;
        }
        int num = Array.IndexOf <global::AuthorChJoint>(this.myJoints, joint);

        if (num != -1)
        {
            for (int i = num; i < this.myJoints.Length - 1; i++)
            {
                this.myJoints[i] = this.myJoints[i + 1];
            }
            Array.Resize <global::AuthorChJoint>(ref this.myJoints, this.myJoints.Length - 1);
        }
    }