protected override void OnDragDropRelease(GameObject surface) { base.OnDragDropRelease(surface); MazeUTL.ResetAllTileState(); if ((surface == null) || (surface.GetComponent <Tile>() == null) || (surface.GetComponent <Tile>().State != TileState.Selectable)) { return; } level.playerCharacter.PlayerAbilities[partType].ActivateAbility(surface.GetComponent <Tile>()); }