new-horizons/NewHorizons/Body/BlackHoleBuilder.cs
2021-12-16 17:37:00 -05:00

21 lines
602 B
C#

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using UnityEngine;
namespace NewHorizons.General
{
static class BlackHoleBuilder
{
public static void Make(GameObject body)
{
var blackHole = GameObject.Instantiate(GameObject.Find("BrittleHollow_Body/BlackHole_BH"), body.transform);
blackHole.name = "BlackHole";
blackHole.GetComponentInChildren<MeshRenderer>().material.renderQueue = 3001;
blackHole.transform.localPosition = Vector3.zero;
}
}
}