![]() |
Eye of the Nile Docs
Everything you need to know to get started!
|
This script thrusts the object it's attached to in the given direction as soon as the object is created. Used for some projectile movement. Eventually the boulder hazards will also use this script.
Documentation updated 11/13/2024
Private Member Functions | |
void | Awake () |
void | Start () |
Private Attributes | |
Rigidbody2D | rb |
Reference to the object's rigidbody. | |
Additional Inherited Members | |
![]() | |
void | HorizontalDirectionChange (bool movingLeft) |
If we want the object to move to left, ensure movementDirection.x is negative. Otherwise, ensure it's positive. | |
void | VerticalDirectionChange (bool movingDown) |
If we want the object to move to down, ensure movementDirection.y is negative. Otherwise, ensure it's positive. | |
![]() | |
Vector2 | movementDirection |
Direction the object should move in. | |
|
private |
|
private |
|
private |
Reference to the object's rigidbody.