Exemplo n.º 1
0
    public override void OnStateEnter(Animator animator, AnimatorStateInfo animatorStateInfo, int layerIndex)
    {
        CommonMoveState.Move(animator);

        if (Globe.netMode)
        {
            GameObject obj = animator.gameObject;
            CommonRangeAttackState.Net_RangeFire(obj);
        }
    }
Exemplo n.º 2
0
    public override void OnStateUpdate(Animator animator, AnimatorStateInfo stateInfo, int layerIndex)
    {
        if (!animator.GetBool("range"))
        {
            return;
        }

        CommonMoveState.Move(animator);

        GameObject obj = animator.gameObject;

        if (!Globe.netMode)
        {
            CommonRangeAttackState.RangeAttack(obj);
        }
    }