- 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 歡迎進行技術討論,里面有不少大牛