DirectionalGameObjects
Class in ChivalrousGames.Common
Description
Associates game objects with directions.
Fields
up | GameObject | GameObject associated with direction up |
right | GameObject | GameObject associated with direction right |
down | GameObject | GameObject associated with direction down |
left | GameObject | GameObject associated with direction left |
forward | GameObject | GameObject associated with direction forward |
backward | GameObject | GameObject associated with direction backward |
none | GameObject | GameObject associated with direction none |
Methods
GetByDirection
public GameObject GetByDirection(Direction direction);
Parameters
direction | Direction | The associated Direction |
Return
The GameObject associated with the Direction passed in param
Description
Returns the GameObject associated with a Direction