Пример #1
0
 public void Update()
 {
     if (_ct <= 0 && _messages.Count > 0 && _text_scroll.finished())
     {
         _text_scroll.load(_messages[0]);
         _messages.RemoveAt(0);
         _current_id = _ids[0];
         _ids.RemoveAt(0);
     }
     else if (_text_scroll.finished())
     {
         _ct           -= Util.dt_scale * 2.0f;
         _img_tar_alpha = Mathf.Clamp(_ct / 100.0f, 0, 1);
     }
     else
     {
         _img_tar_alpha = 1;
         _ct            = 150;
     }
     this.set_img_alpha(Util.drpt(_img.color.a, _img_tar_alpha, 1 / 8.0f));
 }