private void onCriticalAttack(int playerId, int damage) { CombatPlayer p = Manager.Instance.DT.CombatPlayer[_player.Id]; Sprite s = null; if (_player.Id == playerId) { s = p.att; } else { s = p.dmg; FloatingText.Float(damage.ToString(), CriticalSize, CriticalColor); } set(s); }