泛型
摘要:
```C# private void Start() { SpriteRenderer renderer=createObjAddComponent("testObj"); Debug.Log(renderer);//output: testObj (UnityEngine.SpriteRenderer) } private T createObjAddComponent(string na... 阅读全文
posted @ 2019-05-24 17:06 kingBook 阅读(80) 评论(0) 推荐(0) 编辑