Exemplo n.º 1
0
    private void UpdateSwitchLightDim(PlayerCareerType arg1)
    {
        switch (arg1)
        {
        case PlayerCareerType.None:
            base.StartCoroutine(this.ChangeColor(true));
            break;

        case PlayerCareerType.Saber:
            if (this.isMen)
            {
                base.StartCoroutine(this.ChangeColor(true));
            }
            else
            {
                base.StartCoroutine(this.ChangeColor(false));
            }
            break;

        case PlayerCareerType.Basaker:
            if (!this.isMen)
            {
                base.StartCoroutine(this.ChangeColor(true));
            }
            else
            {
                base.StartCoroutine(this.ChangeColor(false));
            }
            break;
        }
    }
Exemplo n.º 2
0
    private void OnDragRole(Vector2 delta, PlayerCareerType arg2)
    {
        if (arg2 == PlayerCareerType.None)
        {
            return;
        }
        float   num            = delta.x * Time.get_deltaTime() * 20f;
        Vector3 noYNormalized  = this.GetNoYNormalized(this.finalTarget, this.aroundPoint);
        Vector3 noYNormalized2 = this.GetNoYNormalized(base.get_transform().get_position(), this.aroundPoint);
        float   num2           = Vector3.Angle(noYNormalized, noYNormalized2);

        if (Vector3.Cross(noYNormalized, noYNormalized2).y < 0f)
        {
            num2 *= -1f;
        }
        if (num2 + num > 75f)
        {
            num = 75f - num2;
        }
        else if (num2 + num < -75f)
        {
            num = -75f - num2;
        }
        if (Mathf.Abs(num2 + num) > 75f)
        {
            return;
        }
        this.RotateByAngleAndRadius(num);
    }
Exemplo n.º 3
0
    public void OnDragRole(Vector2 delta, PlayerCareerType type)
    {
        float num = -delta.x * Time.get_deltaTime() * 20f;

        if (type == PlayerCareerType.None)
        {
            base.get_transform().Rotate(Vector3.get_up(), num);
        }
    }