You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
27 lines
600 B
27 lines
600 B
1 month ago
|
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<JoystickRender>();
|
||
|
}
|
||
|
|
||
|
public void Sync()
|
||
|
{
|
||
|
input = m_Render.input;
|
||
|
}
|
||
|
|
||
|
|
||
|
public void ForceInterruptDrag()
|
||
|
{
|
||
|
m_Render.ForcePointerUp();
|
||
|
}
|
||
|
}
|
||
|
}
|