mirror of
https://github.com/misternebula/quantum-space-buddies.git
synced 2025-02-21 09:39:56 +00:00
using the thing one more place
This commit is contained in:
parent
3f4faa04b3
commit
809b1f946d
@ -1,4 +1,5 @@
|
||||
using QSB.Tools;
|
||||
using QSB.Utility;
|
||||
using UnityEngine;
|
||||
|
||||
namespace QSB.TransformSync
|
||||
@ -35,9 +36,7 @@ namespace QSB.TransformSync
|
||||
{
|
||||
var probe = GetProbe();
|
||||
|
||||
probe.gameObject.SetActive(false);
|
||||
var body = Instantiate(probe);
|
||||
probe.gameObject.SetActive(true);
|
||||
var body = probe.InstantiateInactive();
|
||||
|
||||
Destroy(body.GetComponentInChildren<ProbeAnimatorController>());
|
||||
|
||||
|
@ -25,5 +25,10 @@ namespace QSB.Utility
|
||||
return copy;
|
||||
}
|
||||
|
||||
public static Transform InstantiateInactive(this Transform original)
|
||||
{
|
||||
return original.gameObject.InstantiateInactive().transform;
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user