![]() |
FCV Engine 0.1
A tool and framework for tutorials in game development
|
Used by ranged weapon to make an object travel in direction and then invoke hit event once it collides with an object. More...
Private Member Functions | |
void | Update () |
Controls lifetime and velocity of projectile. | |
void | OnTriggerEnter2D (Collider2D other) |
Checks if Collider2D is in LayerMask and tries to get health component; invokes hitAction if checks succeeds and destroys projectiles Game Object. | |
Used by ranged weapon to make an object travel in direction and then invoke hit event once it collides with an object.
Definition at line 11 of file Projectile.cs.
|
private |
Checks if Collider2D is in LayerMask and tries to get health component; invokes hitAction if checks succeeds and destroys projectiles Game Object.
other | Collider2D |
Definition at line 45 of file Projectile.cs.