mirror of
https://github.com/misternebula/quantum-space-buddies.git
synced 2025-01-07 13:05:41 +00:00
21 lines
452 B
C#
21 lines
452 B
C#
using QSB.Player;
|
|
using QSB.PlayerBodySetup.Remote;
|
|
using UnityEngine;
|
|
|
|
namespace QSB.Tools.ProbeTool
|
|
{
|
|
internal static class ProbeCreator
|
|
{
|
|
public static void CreateProbe(Transform newProbe, PlayerInfo player)
|
|
{
|
|
var qsbProbe = newProbe.gameObject.GetComponent<QSBProbe>();
|
|
player.Probe = qsbProbe;
|
|
qsbProbe.SetOwner(player);
|
|
|
|
FixMaterialsInAllChildren.ReplaceMaterials(newProbe);
|
|
|
|
newProbe.gameObject.SetActive(true);
|
|
}
|
|
}
|
|
}
|