コード例 #1
0
    void Start()
    {
        if (say == null)
        {
            say = this;
        }

        text = GetComponent <Text>();
        text.canvasRenderer.SetAlpha(0);
    }
コード例 #2
0
    void Start()
    {
        if (say == null)
        {
            say = this;
        }

        text      = GetComponent <Text>();
        textSFX   = GetComponent <AudioSource>();
        sentQueue = new Queue <string>();

        sentences = new string[MAX_LENGTH];
        sentCount = 0; usedSent = 0;

        isBusy       = false;
        text.enabled = false;
    }
コード例 #3
0
        //[Authorize(Roles = nameof(PermissionProvider.AddArea))]
        public HttpResponseMessage Update(HttpRequestMessage request, Converse converse)
        {
            return(CreateHttpResponse(request, () =>
            {
                HttpResponseMessage reponse = null;
                if (!ModelState.IsValid)
                {
                    reponse = request.CreateResponse(HttpStatusCode.BadRequest, ModelState);
                }
                else
                {
                    _converseService.Update(converse);

                    reponse = request.CreateResponse(HttpStatusCode.OK, converse);
                }
                return reponse;
            }));
        }
コード例 #4
0
 protected bool amCurrent()
 {
     return(Converse.amCurrent(this));
 }
コード例 #5
0
 protected void FinishInterruption()
 {
     Converse.FinishInterruption(this);
 }