public override void UpdateState(object state)
 {
     if (this.collectionState == CollectionNPCBehavior.CollectionNPCStateType.Collected)
     {
         return;
     }
     if (this.collectionState == (CollectionNPCBehavior.CollectionNPCStateType)((int)state))
     {
         return;
     }
     this.collectionState = (CollectionNPCBehavior.CollectionNPCStateType)((int)state);
     this.UpdateCollider();
     this.ApplyState();
 }
 public CollectionNPCBehavior(int theCollectionDataID, int state)
 {
     this.collectionDataID = theCollectionDataID;
     this.collectionState  = (CollectionNPCBehavior.CollectionNPCStateType)state;
 }