Example #1
0
    protected override void Update()
    {
        base.Update();

        CheckChangeRobot();

        CheckMove();

        if (currentRobot.hasGun)
        {
            CheckAttack();
        }

        CheckExtra();

        if (zRotate)
        {
            SetRotation();
        }

        if (animationRenderer.GetBool(currentRobot.GetHasGunValueName()) != currentRobot.hasGun)
        {
            animationRenderer.SetBool(currentRobot.GetHasGunValueName(), currentRobot.hasGun);
            animationRenderer.SetTrigger(currentRobot.GetGunTriggerName());
        }
    }