private bool onDamaged(float dmg, Vector3 position) { if (fighter.stateMachine.allowInput && fighter.ValidateInput(input) && !disabled) { Debug.Log("Blocked"); if (fighter.ApplyEvent(LZFIGHTEREVENT.BLOCK)) { Debug.Log("blocking"); } fighter.AddScript(block); GameObjectExtension.InstantiateParticleAndDestroy(blockParticle, position, fighter.invertHorizontal); return(true); } return(false); }