using System.Collections; using System.Collections.Generic; using UnityEngine; public class interactive : MonoBehaviour { public bool isInteractive; public GameObject g1; [ContextMenu("ÔËÐÐ")] void init() { g1 = transform.GetChild(0).gameObject; } }