Beispiel #1
0
 public void HandAttackAnimation(AttackType _attackType)
 {
     //if (attackType == _attackType)
     //    return;
     animator.SetInteger(attackTypeState, _attackType.GetHashCode());
     //attackType = _attackType;
 }
    public override int GetHashCode()
    {
        int hash = 1;

        if (Uid != 0)
        {
            hash ^= Uid.GetHashCode();
        }
        if (MoveDirectionX != 0)
        {
            hash ^= MoveDirectionX.GetHashCode();
        }
        if (MoveDirectionY != 0)
        {
            hash ^= MoveDirectionY.GetHashCode();
        }
        if (AttackType != 0)
        {
            hash ^= AttackType.GetHashCode();
        }
        if (AttackDirectionX != 0)
        {
            hash ^= AttackDirectionX.GetHashCode();
        }
        if (AttackDirectionY != 0)
        {
            hash ^= AttackDirectionY.GetHashCode();
        }
        if (_unknownFields != null)
        {
            hash ^= _unknownFields.GetHashCode();
        }
        return(hash);
    }