mirror of
https://github.com/Outer-Wilds-New-Horizons/new-horizons.git
synced 2025-12-11 20:15:44 +01:00
Renamed to new horizons, updated to current versions of OWML and Outer Wilds, added BlackHoleBuilder, LavaBuilder, RingBuilder. Added support to modify existing planets with configs.
23 lines
569 B
C#
23 lines
569 B
C#
using UnityEngine;
|
|
|
|
namespace NewHorizons.General
|
|
{
|
|
static class SpawnpointBuilder
|
|
{
|
|
public static SpawnPoint Make(GameObject body, Vector3 position)
|
|
{
|
|
GameObject spawnGO = new GameObject("SpawnPoint");
|
|
spawnGO.transform.parent = body.transform;
|
|
spawnGO.layer = 8;
|
|
|
|
spawnGO.transform.localPosition = position;
|
|
|
|
//Logger.Log("Made spawnpoint on [" + body.name + "] at " + position);
|
|
|
|
var SS = spawnGO.AddComponent<SpawnPoint>();
|
|
|
|
return SS;
|
|
}
|
|
}
|
|
}
|