mirror of
https://github.com/Outer-Wilds-New-Horizons/new-horizons.git
synced 2025-12-11 20:15:44 +01:00
25 lines
610 B
C#
25 lines
610 B
C#
using OWML.ModHelper.Events;
|
|
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Text;
|
|
using UnityEngine;
|
|
|
|
namespace Marshmallow.General
|
|
{
|
|
static class MakeOrbitLine
|
|
{
|
|
public static void Make(GameObject body, AstroObject astroobject)
|
|
{
|
|
GameObject orbit = new GameObject();
|
|
orbit.transform.parent = body.transform;
|
|
|
|
orbit.AddComponent<LineRenderer>();
|
|
|
|
var ol = orbit.AddComponent<OrbitLine>();
|
|
ol.SetValue("_astroObject", astroobject);
|
|
ol.SetValue("_fade", false);
|
|
}
|
|
}
|
|
}
|