Example #1
0
    protected override void UpdateStats()
    {
        base.UpdateStats();
        BoolStat active = (BoolStat)_stats.GetStat("Active");
        BoolStat auto   = (BoolStat)_stats.GetStat("Auto");

        _raining = active.Value;
        _auto    = auto.Value;
    }
Example #2
0
    protected virtual void InitializeVariables()
    {
        movementEnabled       = true;
        enableAirDeceleration = true;
        doubleJumpLeft        = doubleJumpCount;

        ignoreInput        = new BoolStat(false);
        ignoreMainJoystick = new BoolStat(false);
    }
Example #3
0
    protected override void InitializeVariables()
    {
        EdgeGrabDurationTimer = new Timer(EDGE_GRAB_MAXIMUM_DURATION_FRAME, "Edge Grab Duration Timer", null, EdgeNeutralRelease);
        EdgeGrabImmuneTimer   = new Timer(EDGE_GRAB_IMMUNE_FRAME, "Edge Grab Immune Timer", OnEdgeGrabImmuneStart, OnEdgeGrabImmuneStop);

        TumbleDurationTimer     = new Timer(TUMBLE_MAXIMUM_DURATION_FRAME, "Tumble Duration Timer", null, OnTumbleDurationStop);
        TechWindowDurationTimer = new Timer(TECH_WINDOW_FRAME, "Tech Window Timer", OnTechWindowStart, OnTechWindowStop);

        canBeGrabbed     = new BoolStat(true);
        grabImmuneStatus = new GrabImmuneStatus(GRAB_IMMUNE_FRAME);
        canGrabEdge      = new BoolStat(false);
        //edgeGrabImmuneStatus = new EdgeGrabImmuneStatus(EDGE_GRAB_IMMUNE_FRAME);
        tumblingStatus = new TumblingStatus();
        helplessStatus = new HelplessStatus(0.7f);
        base.InitializeVariables();
    }