|
@ -43,6 +43,12 @@ public class CharacterInputController : MonoBehaviour |
|
|
m_isVictory.OnValueChanged += OnVictory; |
|
|
m_isVictory.OnValueChanged += OnVictory; |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
private void OnDisable() |
|
|
|
|
|
{ |
|
|
|
|
|
m_isPlayerDead.OnValueChanged -= OnDeath; |
|
|
|
|
|
m_isVictory.OnValueChanged -= OnVictory; |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
public void OnMove(InputAction.CallbackContext context) |
|
|
public void OnMove(InputAction.CallbackContext context) |
|
|
{ |
|
|
{ |
|
|
m_movement = context.ReadValue<Vector2>(); |
|
|
m_movement = context.ReadValue<Vector2>(); |
|
|