holopy3/Assets/Scripts/MicroSubParenting.cs
2020-12-10 15:25:12 +01:00

15 lines
352 B
C#

using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class MicroSubParenting : MonoBehaviour
{
private GameObject microSub;
// Start is called before the first frame update
void Start()
{
microSub = GameObject.FindWithTag("MicroSub");
transform.parent = microSub.transform;
}
}