Exemplo n.º 1
0
    void Update()
    {
        // If all souls are instantiated, and game isnt finished yet
        if (controller.allSoulsReady && !controller.gameWon && !controller.wasted)
        {
            EikiJudgement();

            // If direction != none
            if (judgementDirection != EikiJudge_Controller.Direction.none &&
                controller.SendJudgement(judgementDirection))
            {
                AnimateArm();
            }
        }

        // Play win/lose animations
        if (controller.gameWon)
        {
            animator.SetBool("isWin", true);
            foregroundAnimator.SetBool("isWin", true);
        }
        if (controller.wasted)
        {
            animator.SetBool("isLose", true);
        }
    }
Exemplo n.º 2
0
    void Update()
    {
        // If all souls are instantiated
        if (controller.allSoulsReady)
        {
            EikiJudgement();
            AnimateArm();

            // If direction != none
            if (judgementDirection != EikiJudge_Controller.Direction.none)
            {
                controller.SendJudgement(judgementDirection);
            }
        }
    }