Energy Based Objects  2.01
Public Member Functions | Public Attributes
ObjectSpawnerPusher Class Reference

Spawns projectiles then pushes them. More...

Inheritance diagram for ObjectSpawnerPusher:
ObjectPusher ObjectShootingPoint

List of all members.

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.

Detailed Description

Spawns projectiles then pushes them.


Member Data Documentation

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.

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.

 All Classes Namespaces Functions Variables Properties Events