holopy3/Assets/Scripts/MicroSubParenting.cs

16 lines
352 B
C#
Raw Permalink Normal View History

2020-12-10 14:25:12 +00:00
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;
}
}