public void DecreaseOtherCharacterSpeed(float deltaSped, Collider other) { BaseCharacter otherCharacter = other.GetComponent <BaseCharacter>(); /* * If the player is moving faster than its initial speed, * other characters cannot slow down otherwise they may * eventually fall off the track because they are going to slow. */ if (!(player.movementSpeed > player.IntialSpeed)) { otherCharacter.DecreaseSpeed(deltaSped); } }