Esempio n. 1
0
 void OnDestroy()
 {
     if (Instance == this)
     {
         Instance = null;
     }
 }
Esempio n. 2
0
 void Awake()
 {
     Instance = this;
     foreach (var v in target_pivot)
     {
         var cam = v.GetComponent <Camera>();
         if (cam != null)
         {
             CameraOriginalOrthographicSize.Add(cam.orthographicSize);
         }
         else
         {
             CameraOriginalOrthographicSize.Add(0);
         }
     }
 }