Esempio n. 1
0
        // Use this for initialization
        void Start()
        {
            // start with free cam
            camStrat = new CameraFreeStrategy();

            camX    = transform.GetChild(0);
            camY    = camX.GetChild(0);
            camZoom = camY.GetChild(0);
            cam     = camZoom.GetChild(0).gameObject.GetComponent <Camera>();

            rotXTar = camX.rotation.eulerAngles.x;
            rotYTar = camY.rotation.eulerAngles.y;
            rotX    = rotXTar;
            rotY    = rotYTar;
        }
Esempio n. 2
0
 public void SetStrategy(CameraStrategy cameraStrategy)
 {
     camStrat = cameraStrategy;
 }