jellewie / Unity-Gnorts

Gnorts an RTS unity game
11 stars 7 forks source link

Stairs should not be affected by buildings #60

Closed jellewie closed 5 years ago

jellewie commented 5 years ago

Stairs should only be affected by walls and other stairs.

Reproduce problem, Build a building and build a stair next to it (towards or away from it)

solution: Get raycast hit out, and check if it's one of the before named buildings. if not skip the higher/lower code