Example #1
0
 void Awake()
 {
     instance = (CameraControl)target;
 }
Example #2
0
        void Awake()
        {
            instance=this;
            thisT=transform;
            thisObj=gameObject;

            cam=thisObj.GetComponentInChildren<Camera>();
            camT=cam.transform;

            defaultZoom=camT.localPosition.z;
            defaultZoomOrtho=cam.orthographicSize;

            blurEffect=thisObj.GetComponentInChildren<BlurOptimized>();
            if(blurEffect!=null) blurEffect.enabled=false;
        }
 void Awake()
 {
     instance = (CameraControl)target;
 }