/// <summary>
 /// This function is called when the object becomes enabled and active.
 /// </summary>
 void OnEnable()
 {
     if(pEditTilesAssociated == null)
     {
         pEditTilesAssociated = GetComponent<PutEditorTiles>();
         if(pEditTilesAssociated == null)
         {
             this.enabled = false;
             return;
         }
     }
     pEditTilesAssociated.enabled = false;
     baseTilesAlreadySet = pEditTilesAssociated.getBaseTiles();
     elementTilesAlreadySet = pEditTilesAssociated.getElementTiles();
 }
 void OnDisable()
 {
     if(pEditTilesAssociated != null)
     {
         pEditTilesAssociated.enabled = true;
         return;
     }
     else
     {
         pEditTilesAssociated = GetComponent<PutEditorTiles>();
         if(pEditTilesAssociated == null)
             return;
         pEditTilesAssociated.enabled = true;
     }
 }