Exemplo n.º 1
0
    // Start is called before the first frame update
    void Start()
    {   //Combo system!
        current_Combo_Timer = default_Combo_Timer;
        current_Combo_State = OldComboState.NONE;


        playerSpriteRenderer = this.GetComponent <SpriteRenderer>();
        gotSpeed             = 0;
        facingRight          = true;
        isAttacking          = false;

        keyDown    = false;
        keyWasDown = false;
    }
Exemplo n.º 2
0
    void ResetComboState()
    {
        if (activateTimerToReset)
        {
            current_Combo_Timer -= Time.deltaTime;

            if (current_Combo_Timer <= 0f)
            {
                current_Combo_State  = OldComboState.NONE;
                activateTimerToReset = false;
                current_Combo_Timer  = default_Combo_Timer;
            }
        }
    }