Method | Description | |
---|---|---|
Awake ( ) : void | ||
DeSpawn ( |
Returns the given object to the object pool and deactives it until it is spawned again.
|
|
OnDisable ( ) : void | ||
OnEnable ( ) : void | ||
Spawn ( |
Spawns a new prefab at the given position
|
|
Spawn ( ) : void |
Spawns the designated prefab at a random position or random interaction zone based on class fields.
|
public DeSpawn ( |
||
obj | The object to despawn | |
return | void |
public Spawn ( |
||
position | The position at which to spawn the prefab | |
rotation | ||
return |