using System; using System.Collections.Generic; using UnityEngine; using UnityEngine.UI; // 백그라운드 + 버튼 + 텍스트 로 구성된 오브젝트 public class Button_Action : MonoBehaviour { private Button _attackButton; private Button[] _skillButtons = new Button[3]; public event Action OnAttackButtonClicked; public event Action OnSkillButtonClicked; private float _mainButtonSize = 180f; // 조이스틱 크기(300f)의 0.6배 private float _subButtonSize = 120f; private float _subButtonDistance = 200f; // 메인과 서브의 거리 private void Awake() { _skillButtons = new Button[3]; CreateAttackButtons(); CreateSkillButtons(); } private void Start() { // Manager.Input.Buttons = this; // CreateAttackButtons(); } void CreateAttackButtons() { GameObject ButtonObj = Manager.Resource.Instantiate("Prefabs/UI/Button_Action", transform); ButtonObj.name = "AttackButton"; _attackButton = ButtonObj.GetComponent