diff options
author | chai <215380520@qq.com> | 2023-10-19 15:36:59 +0800 |
---|---|---|
committer | chai <215380520@qq.com> | 2023-10-19 15:36:59 +0800 |
commit | f4a633ea5125025216cc1d260d5dbac66f6ed194 (patch) | |
tree | 2c1d70c22b712dd895afcdc41bda158b1e2ee2ae /Docs/TAB_AddCamera.txt | |
parent | bc77bc7bc8b1a9b04ff598ff45eec0a1df5c6d8c (diff) |
*doc
Diffstat (limited to 'Docs/TAB_AddCamera.txt')
-rw-r--r-- | Docs/TAB_AddCamera.txt | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/Docs/TAB_AddCamera.txt b/Docs/TAB_AddCamera.txt new file mode 100644 index 0000000..d456f6d --- /dev/null +++ b/Docs/TAB_AddCamera.txt @@ -0,0 +1,11 @@ + + GameObject camera = GameObject.Find("WanderCamera"); + if(camera != null) + { + GameObject.DestroyImmediate(camera); + } + + camera = new GameObject(); + camera.name = "WanderCamera"; + camera.AddComponent<Camera>(); + camera.AddComponent<SimpleMoveCamera>(); |