12345678910111213141516171819202122232425262728 |
- using System;
- using System.Collections;
- using System.Collections.Generic;
- using UnityEngine;
- public class CameraLocations : Singleton<MonoBehaviour>
- {
- public CameraLocation[] Locations;
- public CameraLocation GetLocation()
- {
- foreach (var item in Locations)
- {
- if (item.ID == LocationManager.Instance.CurrentLocationID)
- return item;
- }
- return new CameraLocation();
- }
- }
- [Serializable]
- public struct CameraLocation
- {
- public string ID;
- public float zoom;
- public Vector3 position;
- }
|