Hello @gamingislove I'm trying to get notified when the Player Control is Blocked, to be able to change the custom animation system accordingly, but it seems when Changing scenes the Event is not triggered again, leaving the last flag as Blocked (change = 1).
Here's the code I used to debug in the 3D RPG Playground Demo
[SerializeField]
private bool _CharacterInControl;
public bool CharacterInControl => _CharacterInControl;
private void OnDisable()
{
Maki.Control.BlockPlayerChanged -= Control_BlockPlayerChanged;
}
private void Start()
{
Maki.Control.BlockPlayerChanged += Control_BlockPlayerChanged;
}
private void Control_BlockPlayerChanged(int change)
{
_CharacterInControl = (change < 0 ? true : false);
Debug.Log("Control Change: " + change + " IsControlled:" + _CharacterInControl);
}
Is there a better way to do it?