mirror of
https://github.com/Outer-Wilds-New-Horizons/new-horizons.git
synced 2025-12-11 20:15:44 +01:00
21 lines
516 B
C#
21 lines
516 B
C#
using UnityEngine;
|
|
|
|
namespace Marshmallow.General
|
|
{
|
|
static class MakeSpawnPoint
|
|
{
|
|
public static SpawnPoint Make(GameObject body, Vector3 position)
|
|
{
|
|
GameObject spawn = new GameObject();
|
|
spawn.transform.parent = body.transform;
|
|
spawn.layer = 8;
|
|
|
|
spawn.transform.localPosition = position;
|
|
|
|
//Main.Log("Made spawnpoint on [" + body.name + "] at " + position);
|
|
|
|
return spawn.AddComponent<SpawnPoint>();
|
|
}
|
|
}
|
|
}
|