Пример #1
0
    void Frash()
    {
        if (Input.GetKeyDown(KeyCode.LeftArrow) || Input.GetKeyDown(KeyCode.RightArrow) ||
            Input.GetKeyDown(KeyCode.A) || Input.GetKeyDown(KeyCode.D))
        {
            charaProvider.Shake();
        }
        var frash = Input.GetKeyDown(KeyCode.Space);

        if (frash)
        {
            gameManager.PlayerFrashToUnitychan();
        }
    }