- void ChangeAngle2()
- {
-
- if (Input.GetKey(KeyCode.Z))
- {
-
-
- if (camFirst.active)
- {
- camFirst.active = false;
- camThree.active = false;
- camSky.active = true;
- showStr = "切换至第三人称视角";
-
- }
-
- if (camThree.active)
- {
- camFirst.active = false;
- camThree.active = false;
- camSky.active = true;
- showStr = "切换至空中视角";
-
- }
-
- if (camSky.active)
- {
- camFirst.active = true;
- camThree.active = false;
- camSky.active = false;
- showStr = "切换至第一人称视角";
-
- }
- }
- Debug.Log(showStr);
-
- }
关于Unity3D,我们有个专门技术讨论的大群,可以进行技术交流和咨询,群号:858550 欢迎进行技术讨论,里面有不少大牛