using Entitas.CodeGeneration.Attributes; using UnityEngine; namespace CoreGame.Render { [Combat, Unique] public class JoystickProxy : ProxyBase { internal Vector2 input; private JoystickRender m_Render; protected override void Initialize(GameObject go, CombatEntity ent) { m_Render = go.GetComponentInChildren(); } public void Sync() { input = m_Render.input; } public void ForceInterruptDrag() { m_Render.ForcePointerUp(); } } }