public BattleCamera(GameObject cameraObject) { //this.cameraObject = cameraObject; camera = cameraObject.GetComponentInChildren <Camera>(); cameraMoving = new FollowMoving(cameraObject); cameraZoomInOut = new DragZoom(cameraObject); cameraAngle = new LookAtTarget(cameraObject); }
//GameObject cameraObject; public BoardCamera(GameObject cameraObject) { //this.cameraObject = cameraObject; camera = cameraObject.GetComponentInChildren <Camera>(); cameraMoving = new DragMoving(cameraObject); cameraZoomInOut = new DragZoom(cameraObject); cameraAngle = new LookAtManual(cameraObject); }