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