Esempio n. 1
0
    public override void stopSkill()
    {
        skillSound.volume = 0;
        isN2OReady        = true;
        isSkillUsing      = false;
        foreach (ParticleSystem N2O in N2OParticles)
        {
            N2O.Stop();
        }

        GetComponent <CarStatus>().topSpeedModifier = 1;
        N2OTimer = 0;
    }
Esempio n. 2
0
    public override void activateSkill()
    {
        //Debug.Log("inheritance called");
        skillSound.volume = 1;

        //originalTopSpeed = GetComponent<CarStatus>().topSpeed;
        GetComponent <CarStatus>().topSpeedModifier = N2OTopSpeedModifier;
        if (isN2OReady && !isSkillUsing)
        {
            isN2OReady   = false;
            isSkillUsing = true;
            foreach (ParticleSystem N2O in N2OParticles)
            {
                N2O.Play();
            }
            N2OTimer = Time.time;
        }
    }