Exemplo n.º 1
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;
        }
    }