public void TakeDamage(float damage) { if (_platform.Activate(gameObject)) { gameObject.layer = _groundLayer; } }