public void handleWeaponDamage(GameObject weapon) { WeaponController weaponController = weapon.GetComponent <WeaponController>(); hitPoints -= weaponController.getDamage(); if (hitPoints <= 0) { GameObject fx = Instantiate(deathFx, transform.position, Quaternion.identity); fx.transform.parent = parent; Destroy(gameObject); scoreBoard.IncreaseScore(scoreValue); scoreBoard.AdjustMult(1); } }