|
|
|
|
|
|
public BlueprintSelectionMode blueprintSelecionMode = BlueprintSelectionMode.Random; |
|
|
|
|
|
|
|
public bool RespawnTarget = true; |
|
|
|
public bool AttachToTarget = true; |
|
|
|
public float RespawnDelay = 3.0f; |
|
|
|
|
|
|
|
[Min(1), SerializeField] |
|
|
|
|
|
|
if (m_Instances.Count <= MaxInstances) |
|
|
|
{ |
|
|
|
GameObject newInstance = Spawn(SelectBlueprint(), SpawnTarget); |
|
|
|
if (AttachToTarget) |
|
|
|
newInstance.transform.parent = SpawnTarget.transform; |
|
|
|
|
|
|
|
|
|
|
|
Callable.Call(OnSpawn, newInstance); |
|
|
|
} |
|
|
|
|
|
|
|