void BombBehaviour_OnBoxDestroy(object sender, BombHit e) { if (e.HitObjectName.Equals("block")) { destroyedBoxCount++; } if (e.HitObjectName.Equals("Enemy")) { destroyedEnemyCount++; } IsGateOpen = CheckGateStatus(); }
void OnObjectHit(object sender, BombHit e) { if (e.HitObjectName.Equals("Player")) { PlayerMovement_OnGameOver(this, new GameOverEvent(false)); } if (e.HitObjectName.Equals("Enemy")) { Debug.Log("Enemy ScoreUpdate"); score += e.Score; UpdateScore(); } }