我自己的代码段(VS Code)

记录一下自己工作中写的代码段,可以提高工作效率:
1.Debug.Log()

{
	"Debug.Log(Something)" :{
		"scope": "",
		"prefix": "De",
		"body": [
			"Debug.Log($0);"
		],
		"description": "快速Debug"
	}
}

2.等待协程

{
	"Create IEnumerator" :{
		"scope": "",
		"prefix": "IE",
		"body": [
			"public IEnumerator IE_temp$0(float duration)",
			"{",
			"\tyield return new WaitForSeconds(duration$1);",
			"}",
		] ,
		"description" : "协程快速使用"
	}

}

3.开启协程

{
	"Print to console": {
		"scope": "",
		"prefix": "SC",
		"body": [
			"StartCoroutine($2);",
		],
		"description": "开启协程的快速代码段"
	}
}

4. 协程中yield return null

{
	"yiled return null" :{
		"scope": "",
		"prefix": "yie",
		"body": [
			"yield return null$0;"
		] ,
		"description" : "协程中使用"
	}
}

你可能感兴趣的:(unity,unity,c#)