Energy Based Objects
2.01
|
Spawns projectiles then pushes them. More...
Public Member Functions | |
void | Instantiate () |
Public Attributes | |
Func< GameObject > | OverrideSpawnThisObject |
If set, it will use this function instead to add a projectile to the list. Useful for if you have your own Object Pool. | |
GameObject | spawnThisObject |
The object to instantiate and push. | |
int | spawnAmount = 1 |
How many objects should be instantiated. | |
bool | isKinematicOnSpawn |
If you are spawning a rigidbody, set isKinematic to true;. | |
bool | parentOnSpawn |
Parent the spawned object to this object;. | |
Transform | parentTo |
If parentOnSpawn is true, this object will be the parent. Parents to self if parentTo is not set. |
Spawns projectiles then pushes them.
bool isKinematicOnSpawn |
If you are spawning a rigidbody, set isKinematic to true;.
Func<GameObject> OverrideSpawnThisObject |
If set, it will use this function instead to add a projectile to the list. Useful for if you have your own Object Pool.
bool parentOnSpawn |
Parent the spawned object to this object;.
Transform parentTo |
If parentOnSpawn is true, this object will be the parent. Parents to self if parentTo is not set.
int spawnAmount = 1 |
How many objects should be instantiated.
GameObject spawnThisObject |
The object to instantiate and push.