public static void OnScore(int amount) { CashManager.AddCash(amount); int preMultiplier = CashManager.Multiplier; XPManager.AddXP(amount * preMultiplier); CashManager.AddMultiplier(); if (CashManager.Multiplier != preMultiplier) { if (OnMultiplierChange != null) { OnMultiplierChange(CashManager.Multiplier); } } }