예제 #1
0
 private void Awake()
 {
     singleton       = this;
     myTransform     = transform;
     defaultPosition = cameraTransform.localPosition.z;
     ignoreLayers    = ~(1 << 8 | 1 << 9 | 1 << 10);
 }
예제 #2
0
 private void Awake()
 {
     //may need OnEnable() here
     cameraHandler = CameraHandler.singleton;
 }