mirror of
https://github.com/Outer-Wilds-New-Horizons/new-horizons.git
synced 2025-12-11 20:15:44 +01:00
25 lines
600 B
C#
25 lines
600 B
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Text;
|
|
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>();
|
|
}
|
|
}
|
|
}
|