void Die() { for (int i = 0; i < _pointAmount; i++) { Points point = _pointSpawner.pointsPool.GetObject(); if (_pointAmount > 1) { point.SetMovement(point.straight); point.BonusSetter(bonusDrop).UnitDefiner(_pointSpawner.pointParamDic[bonusDrop.ToString()]).SetLocation(new Vector3(transform.position.x + Random.Range(-1.5f, 2.5f), transform.position.y + Random.Range(-1.5f, 2.5f))); } else { point.SetMovement(point.straight); point.BonusSetter(bonusDrop).UnitDefiner(_pointSpawner.pointParamDic[bonusDrop.ToString()]).SetLocation(transform.position); } _model.power += _powerAmount; } }