Exemple #1
0
    void Update()
    {
        if (Input.GetKey(KeyCode.Space))
        {
            attack.Attack();
        }

        if (Input.GetKeyUp(KeyCode.Space))
        {
            attack.AttackEnd();
        }
    }