mirror of
https://github.com/Outer-Wilds-New-Horizons/new-horizons.git
synced 2025-12-11 20:15:44 +01:00
23 lines
557 B
C#
23 lines
557 B
C#
using UnityEngine;
|
|
|
|
namespace Marshmallow.General
|
|
{
|
|
static class SpawnpointBuilder
|
|
{
|
|
public static SpawnPoint Make(GameObject body, Vector3 position)
|
|
{
|
|
GameObject spawnGO = new GameObject();
|
|
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;
|
|
}
|
|
}
|
|
}
|