GameUtility.cs 383 B

1234567891011121314151617
  1. using System;
  2. using UnityEngine;
  3. namespace wf
  4. {
  5. public static class GameUtility
  6. {
  7. public static void ResetCameraZero()
  8. {
  9. CameraMain mainCamera = GameMain.Instance.MainCamera;
  10. mainCamera.SetTargetOffset(Vector3.zero, true);
  11. mainCamera.SetTargetPos(Vector3.zero, true);
  12. mainCamera.SetDistance(0f, true);
  13. mainCamera.SetAroundAngle(Vector2.zero, true);
  14. }
  15. }
  16. }