当前位置: 首页 > news >正文

张启亚学做网站昆明网络公司app

张启亚学做网站,昆明网络公司app,大型购物网站开发,温州seo按天扣费作者是一名OIer,因为兴趣,想在寒假期间开发一款文字游戏的demo。 本博客仅用作记录,马蜂极度不符合规范。 但是,可以用来避坑。 1.等待功能——使用的是协程函数,且调用与常规调用函数不同。 private IEnumerator Sco(){isScoe…

作者是一名OIer,因为兴趣,想在寒假期间开发一款文字游戏的demo。

本博客仅用作记录,马蜂极度不符合规范。

但是,可以用来避坑。

1.等待功能——使用的是协程函数,且调用与常规调用函数不同。

 private IEnumerator Sco(){isScoelling = 1;senten.text = "";foreach(char letter in dialog[dires].ToCharArray()){senten.text += letter;yield return new WaitForSeconds(textspeed);//等待多久}isScoelling = 0;}StartCoroutine(你要用的函数);//调用
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using TMPro;
using System;public class bplan : MonoBehaviour
{// Start is called before the first frame updatepublic TMP_Text  senten;public float textspeed;string[] dialog = new string[1001] ;int tot = 0;void add(string a){dialog[tot] = a;tot++;}void Start(){TextAsset txt = Resources.Load("test01") as TextAsset;//Debug.Log(txt);dialog = txt.text.Split('\n');}// Update is called once per frameint dires = 0;int isScoelling = 0;private IEnumerator Sco(){isScoelling = 1;senten.text = "";foreach(char letter in dialog[dires].ToCharArray()){senten.text += letter;yield return new WaitForSeconds(textspeed);}isScoelling = 0;}void Update () {if (Input.GetKeyUp(KeyCode.A)&&isScoelling == 0){dires++;StartCoroutine(Sco());}}
}

http://www.yayakq.cn/news/485893/

相关文章:

  • 工程机械网站模板凡科是大厂吗
  • 建房城乡建设部网站阿里云网站建设怎么样
  • 酷站欣赏wordpress手机编辑器插件下载
  • 做图标的网站公司网站设
  • 威县做网站哪儿好论网站建设情况
  • 商场网站方案网页设计与网站建设pdf
  • 吕梁网站定制wordpress js 添加
  • 做网站都去哪里找模板外包服务美剧
  • 茂名市制作网站的公司工信部怎么查网站备案
  • 如何建设公司网站信息ppt链接网站怎么做的
  • 厦门网站建设和人才库建设工作服定做厂家
  • 网站镜像代理怎么做租赁商城手机网站开发
  • html5怎么做二手网站湖南隆回建设局网站
  • 庐江网站制作如何查找高权重网站
  • 公司名称可以和网站域名不同吗织梦网站优化怎么做
  • 南京做网站的公司北京做网站ezhixi
  • 建设网站的合约上海建筑设计院待遇
  • 免费精品网站模板成都建网站要多少钱
  • 网站的评测系统怎么做的网站授权系统怎么用
  • 淘宝客怎样做网站做微信网站公司
  • 做营销看的网站有哪些内容网站做百度竞价
  • 广州网站建设论坛网站国外推广
  • 哪类网站赚钱 优帮云北京vi设计公司有哪些
  • 旅游网站开发技术文档网站建设服务费入什么科目
  • 要学做网站有限公司名称大全
  • 购物网站怎么建设网站怎么申请备案
  • 恩施做网站网页设计师个人网站
  • 无锡网站推广哪家公司好老网站做成适合手机端的网站怎么做
  • 上海企业网站开发山东企业
  • 抽奖网站怎么做的个人网页内容