public void SimpleSpawn(int spawnInt) { instanceList currentList = InstanceList[spawnInt]; CheckOverrideAssignment(currentList); DeploySpawn(currentList.Prefab, currentList.ShotDirection, currentList.AnimTriggerA, currentList.AnimTriggerB, currentList.SpawnItem, currentList.V3CoordsOverride, currentList.v3CoordsOverrideObject); }
void CheckOverrideAssignment(instanceList overrideList) { if (overrideList.V3CoordsOverride == null) { if (overrideList.v3CoordsOverrideObject == OverrideObject.HeroShip) { overrideList.V3CoordsOverride = starGameManagerRef.HeroShip; } if (overrideList.v3CoordsOverrideObject == OverrideObject.StageShape) { overrideList.V3CoordsOverride = starGameManagerRef.ActorsParent; } } }