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

21 lines
436 B
C#

using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class ButterflyParenting : MonoBehaviour
{
private GameObject butterfly;
// Start is called before the first frame update
void Start()
{
butterfly = GameObject.FindWithTag("Butterfly");
transform.parent = butterfly.transform;
}
// Update is called once per frame
void Update()
{
}
}