using System.Collections; using System.Collections.Generic; using UnityEngine; using UnityEngine.UI; using UnityEngine.EventSystems; namespace Watermelon { [RequireComponent(typeof(Button), typeof(BoxCollider))] public class WorldSpaceButton : MonoBehaviour { private Button button; private BoxCollider boxCollider; private bool IsInitialized { get; set; } private void Awake() { if (!IsInitialized) Init(); } private void Init() { IsInitialized = true; button = GetComponent