//Called when the player attacks an enemy. Only do stuff related to the player here, enemy stuff is handled by the enemy public void attackEnemy(Enemy enemy) { enemyCombo++; if (enemyCombo > 1) { comboScript.spawnCombo (enemy, enemyCombo); } float points = (float)enemy.getBasePoints () * Mathf.Pow (1.5f * TripMode.bonuses [TripMode.comboMultiplier], enemyCombo) * TripMode.bonuses [TripMode.pointsMultiplier]; //Debug.Log (points); Player.addScore ((int)points); Player.streak++; }