using System; using System.Collections.Generic; using UnityEngine; using UnityEngine.UI; public class VirtualButtons : 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/VirtualButton", transform); ButtonObj.name = "AttackButton"; _attackButton = ButtonObj.GetComponent