holopy3/Assets/Scripts/ButterflyParenting.cs

22 lines
436 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 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()
{
}
}