From f4a633ea5125025216cc1d260d5dbac66f6ed194 Mon Sep 17 00:00:00 2001 From: chai <215380520@qq.com> Date: Thu, 19 Oct 2023 15:36:59 +0800 Subject: *doc --- Docs/TAB_AddCamera.txt | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 Docs/TAB_AddCamera.txt (limited to 'Docs/TAB_AddCamera.txt') 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.AddComponent(); -- cgit v1.1-26-g67d0