Пример #1
0
        void Awake()
        {
            _instance          = this;
            _transform         = GetComponent <Transform>();
            camera             = GetComponent <Camera>();
            _originalOrthoSize = camera.orthographicSize;

            var behaviors = GetComponents <ICameraBaseBehavior>();

            for (var i = 0; i < behaviors.Length; i++)
            {
                addCameraBaseBehavior(behaviors[i]);
            }
        }
Пример #2
0
 void OnApplicationQuit()
 {
     _instance = null;
 }