public void registerHit(GameObject otherObj) { if (m_currentAttack != null) { m_currentAttack.onHitConfirm(otherObj); GetComponent <BasicMovement> ().onHitConfirm(otherObj); } }
public void registerHit(GameObject otherObj) { if (currentAttack != null) { currentAttack.onHitConfirm(otherObj); if (GetComponent <Player> ()) //Stopgap in order to test beat recognition power. { GetComponent <Player> ().onHitConfirm(otherObj); } } }