コード例 #1
0
    private new void Start()
    {
        base.Start();

        distributionPicker = transform.Find("Distribution/Body").GetComponent <DistributionPicker>();

        fontSize  = 1.1f;
        alignment = TMPro.TextAlignmentOptions.Left;
        var body = transform.Find("Body");

        size           = new Vector3(body.lossyScale.x, body.lossyScale.y, body.lossyScale.z);
        lifetime       = 120f;
        location       = gameObject.transform;
        offset         = new Vector3(0f, -0.9f, -0.02f);
        fadeInDuration = fadeOutDuration = 0.2f;
        movementMode   = Tippy.MovementMode.Exact;
    }
コード例 #2
0
        public void CommitDistribution(int userId)
        {
            IQueriesFixer         distributions        = new QueriesFixer();
            IDistributionPicker   distributionPicker   = new DistributionPicker();
            IDistributionReleaser distributionReleaser = new DistributionReleaser();

            Console.WriteLine(" 1 Select available items for distribution \n 2 Close distribution");

            var resParse = comandParser.CommandParse("Distribution");

            if (resParse == 0)
            {
                return;
            }

            if (resParse == 1)
            {
                distributionPicker.PickUpDistribution(dbContext, distributions, comandParser, userId);
            }
            else
            {
                distributionReleaser.CloseDistribution(dbContext, distributions, comandParser, userId);
            }
        }