private void AddPiontToScore(BoxScript bs) { if (bs.pointNumber >= 0) { if (bs.pointNumber < User.Instance.powerLevel) { GameManager.scoreUp += bs.pointNumber; } else { GameManager.scoreUp += User.Instance.powerLevel; } if (BonusManager.getbonusDamageBall()) { bs.pointNumber -= User.Instance.powerLevel * 2; bs.color(); } else { bs.pointNumber -= User.Instance.powerLevel; bs.color(); } } }