Beispiel #1
0
    // niin hyvää hermannia
    public override void ApplyEffect()
    {
        base.ApplyEffect();
        KB.maxSpeedChange += boostAmount;
        KB.maxSpeed        = KB.maxSpeedChange + KB.defaultMaxSpeed;


        weaponScript = Kart.GetComponent <Weapon>();
        GameObject FIRE = weaponScript.speedBoost;

        FLAMES = GameObject.Instantiate(FIRE, Kart.transform.position, Quaternion.identity) as GameObject;


        //  KB.speed = KB.maxSpeed;
        KB.GetComponent <Rigidbody>().velocity = KB.transform.forward * KB.maxSpeed;
    }