// 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; }
public void SetStrategy(CameraStrategy cameraStrategy) { camStrat = cameraStrategy; }