/// <summary> /// Checks if the tile is Passable by the ColliderType /// It will return the default Passable bool unless an exception is avalaible in PassableException /// </summary> /// <param name="colliderType"></param> /// <returns>IsPassable</returns> public bool IsPassable(CollisionType colliderType, Vector3Int origin, MetaTileMap metaTileMap) { if (this.LayerType == LayerType.Tables) { if (metaTileMap.IsTableAt(origin)) { return(true); } } if (passableException.ContainsKey(colliderType)) { return(passableException[colliderType]); } else { return(passable); } }
public bool IsTableAt(Vector3Int position, bool isServer) { return(MetaTileMap.IsTableAt(position)); }