Assets/Deps/emotitron/Network/NST/NSTHelper.cs
/// <summary>
/// Replicate entire gameobject as only empty gameobjects and colliders.
/// </summary>
Replicate entire gameobject as only empty gameobjects and colliders.
Replicate entire gameobject as only empty gameobjects and colliders .
public static GameObject CreateRewindObject(NetworkSyncTransform nst, GameObject rootgo)
		{
			GameObject rewgo = new GameObject("Rewind " + rootgo.name);
			CloneChildrenAndColliders(nst, rootgo, rewgo);
			rewgo.transform.parent = rootgo.transform.parent;
			rewgo.transform.localPosition = rootgo.transform.localPosition;
			rewgo.transform.localScale = rootgo.transform.localScale;
			rewgo.transform.localRotation = rootgo.transform.localRotation;
			rewgo.SetActive(false);
			return rewgo;
		}
public static GameObject CreateRewindObject ( NetworkSyncTransform nst , GameObject rootgo ) { GameObject rewgo = new GameObject ( " " + rootgo . name ) ; CloneChildrenAndColliders ( nst , rootgo , rewgo ) ; rewgo . transform . parent = rootgo . transform . parent ; rewgo . transform . localPosition = rootgo . transform . localPosition ; rewgo . transform . localScale = rootgo . transform . localScale ; rewgo . transform . localRotation = rootgo . transform . localRotation ; rewgo . SetActive ( false ) ; return rewgo ; }
Replicate entire gameobject as only empty gameobjects and colliders.
Replicate entire gameobject as only empty gameobjects and colliders .
nst
NetworkSyncTransform
rootgo
GameObject