Exemple #1
0
    public void UpgradeBrake()
    {
        HR_ModApplier applier = GameObject.FindObjectOfType <HR_ModApplier>();

        applier.brakeLevel++;
        applier.UpdateStats();
    }
Exemple #2
0
    public void UpgradeTurbo()
    {
        HR_ModApplier applier = GameObject.FindObjectOfType <HR_ModApplier>();

        applier.isTurboPurchased = true;
        applier.UpdateStats();
    }
Exemple #3
0
    public void UpgradeHandling()
    {
        HR_ModApplier applier = GameObject.FindObjectOfType <HR_ModApplier>();

        applier.handlingLevel++;
        applier.UpdateStats();
    }
Exemple #4
0
    public void UpgradeSpeed()
    {
        HR_ModApplier applier = GameObject.FindObjectOfType <HR_ModApplier>();

        applier.speedLevel++;
        applier.UpdateStats();
    }
Exemple #5
0
    public void ChangeChassisColor(Color color)
    {
        HR_ModApplier applier = GameObject.FindObjectOfType <HR_ModApplier>();

        applier.bodyColor = color;
        applier.UpdateStats();
    }
Exemple #6
0
    public void UpgradeSiren()
    {
        HR_ModApplier applier = GameObject.FindObjectOfType <HR_ModApplier>();

        applier.isSirenPurchased = true;
        applier.UpdateStats();
        applier.ToggleSiren();
    }
Exemple #7
0
    public void ChangeWheels(int wheelIndex)
    {
        HR_ModApplier applier = GameObject.FindObjectOfType <HR_ModApplier>();

        applier.selectedWheel = HR_Wheels.Instance.wheels[wheelIndex].wheel;
        applier.wheelIndex    = wheelIndex;
        applier.UpdateStats();
    }