Unity 携程简易使用

来源:互联网 发布:sysbench mysql doc 编辑:程序博客网 时间:2024/06/03 22:39

本人Unity菜鸟,此博客只为笔记和分享用,不对的地方请大伽指正 


携程:

IEnumerator HideBullet(GameObject HideObj)

    {
        yield return new WaitForSeconds(5f); //延迟5秒执行
        HideObj.SetActive(false); //这个是延迟5秒执行的东西

    }

开启携程:

StartCoroutine(HideBullet(bullet[index]));



1 0