public override void SavecolliderData()
 {
     if (this.theObjectWillBeEdited != null && this.mCollider2D != null)
     {
         if (!this.MColliderDataSupporter.colliderDataDic.ContainsKey(this.MB2S_BoxColliderDataStructure.id))
         {
             B2S_BoxColliderDataStructure b2SBoxColliderDataStructure = new B2S_BoxColliderDataStructure();
             b2SBoxColliderDataStructure.id              = MB2S_BoxColliderDataStructure.id;
             b2SBoxColliderDataStructure.finalOffset.X   = MB2S_BoxColliderDataStructure.finalOffset.X;
             b2SBoxColliderDataStructure.finalOffset.Y   = MB2S_BoxColliderDataStructure.finalOffset.Y;
             b2SBoxColliderDataStructure.isSensor        = MB2S_BoxColliderDataStructure.isSensor;
             b2SBoxColliderDataStructure.b2SColliderType = MB2S_BoxColliderDataStructure.b2SColliderType;
             b2SBoxColliderDataStructure.hx              = MB2S_BoxColliderDataStructure.hx;
             b2SBoxColliderDataStructure.hy              = this.MB2S_BoxColliderDataStructure.hy;
             this.MColliderDataSupporter.colliderDataDic.Add(this.MB2S_BoxColliderDataStructure.id,
                                                             b2SBoxColliderDataStructure);
         }
         else
         {
             this.MColliderDataSupporter.colliderDataDic[this.MB2S_BoxColliderDataStructure.id] =
                 this.MB2S_BoxColliderDataStructure;
         }
     }
     using (FileStream file = File.Create($"{this.ColliderDataSavePath}/{this.ColliderDataFileName}.bytes"))
     {
         BsonSerializer.Serialize(new BsonBinaryWriter(file), this.MColliderDataSupporter);
     }
 }
        public override void OnUpdate()
        {
            if (CachedGameObject != theObjectWillBeEdited)
            {
                if (theObjectWillBeEdited != null)
                {
                    CachedGameObject = theObjectWillBeEdited;
                }
                ResetData();
                return;
            }

            if (theObjectWillBeEdited == null)
            {
                ResetData();
                return;
            }

            if (mCollider2D == null)
            {
                mCollider2D = theObjectWillBeEdited.GetComponent <BoxCollider2D>();
                if (mCollider2D == null)
                {
                    this.canDraw = false;
                }
            }

            if (this.MB2S_BoxColliderDataStructure.id == 0)
            {
                this.MColliderNameAndIdInflectSupporter.colliderNameAndIdInflectDic.TryGetValue(this.theObjectWillBeEdited.name,
                                                                                                out this.MB2S_BoxColliderDataStructure.id);
                if (this.MColliderDataSupporter.colliderDataDic.ContainsKey(this.MB2S_BoxColliderDataStructure.id))
                {
                    this.MB2S_BoxColliderDataStructure =
                        (B2S_BoxColliderDataStructure)this.MColliderDataSupporter.colliderDataDic[this.MB2S_BoxColliderDataStructure.id];
                }
            }
        }