![]() |
BotNavSim
v0.4.3
Mobile Robot Simulation
|
Sets a random sprite for displaying the robot destination. More...
Public Member Functions | |
void | ChooseRandomSprite () |
Chooses the random sprite. More... | |
Public Attributes | |
Sprite[] | sprites |
Sprite library (values set in Unity Inspector) More... | |
Private Member Functions | |
void | Awake () |
Awake this instance. More... | |
void | Update () |
Set the sprite to face the camera. More... | |
Private Attributes | |
SpriteRenderer | _sr |
Reference to the sprite renderer component. More... | |
Sets a random sprite for displaying the robot destination.
Definition at line 7 of file Destination.cs.
|
private |
Awake this instance.
Definition at line 29 of file Destination.cs.
void Destination.ChooseRandomSprite | ( | ) |
Chooses the random sprite.
Definition at line 22 of file Destination.cs.
|
private |
Set the sprite to face the camera.
Definition at line 36 of file Destination.cs.
|
private |
Reference to the sprite renderer component.
Definition at line 17 of file Destination.cs.
Sprite [] Destination.sprites |
Sprite library (values set in Unity Inspector)
Definition at line 12 of file Destination.cs.