Example #1
0
 /// <summary>
 /// 切换视角
 /// </summary>
 public void ChangeCamera()
 {
     if (MainCamera.activeSelf)
     {
         MainCamera.SetActive(false);
         FirstPersonCamera.SetActive(true);
     }
     else
     {
         MainCamera.SetActive(true);
         FirstPersonCamera.SetActive(false);
     }
 }