Пример #1
0
    //Self-buff that increases player's speed.
    public static Active Overclock(PlayerScript owner)
    {
        Active returnActive = new Active(20.0f, 5.0f);
        returnActive.ActiveClassification = Active.ActiveType.Overclock;

        //Buff the player here and play anim.
        owner.MaxVelocity = 0.95f;
        owner.Acceleration = 1.8f;

        //Add the Tween Component to the player to animate the Overclock effect of overheating.
        returnActive.InitializeOverclockAnim(owner);

        return returnActive;
    }