unity, 慎用DontDestroyOnLoad
摘要:
如果想让一个节点切换场景时不销毁,可以为它添加如下脚本:usingUnityEngine;usingSystem.Collections;publicclassdontDestroyOnLoad:MonoBehaviour{voidStart(){//ref:http://answers.unity... 阅读全文
posted @ 2015-08-23 16:28 wantnon 阅读(2160) 评论(0) 推荐(0) 编辑