public void GoToPullOrBounce() { if (_PullEnergy > 0) { mISM.Push("PullEnergy"); } else { if (StartBounce()) { mISM.Push("Bounce"); } } }
public void GoToBounce(float y) { if (_CameraDirection == ECAMERADIRECTION.ECD_DOWN) { if (_ControlCamera.fieldOfView / 2 > _ControlCamera.transform.rotation.eulerAngles.x) { StartBounce(y); mISM.Push("Bounce"); } } else if (_CameraDirection == ECAMERADIRECTION.ECD_UP) { if (-_ControlCamera.fieldOfView / 2 < (_ControlCamera.transform.rotation.eulerAngles.x - 360) % 360) { StartBounce(y); mISM.Push("Bounce"); } } }
protected override void MakeISM() { mISM = new ISMStateMachine <ScreenMeshHalfCameraController>(this); mISM.CreateAndAdd <SMHBounceState>("Bounce", this); mISM.CreateAndAdd <SMHBounceDragState>("BounceDrag", this); mISM.Push("Bounce"); }
protected virtual void MakeISM() { mISM = new ISMStateMachine <CylinderPlaneMeshController>(this); mISM.CreateAndAdd <CMPlaneState>("Plane", this); mISM.CreateAndAdd <CMPinchState>("Pinch", this); mISM.CreateAndAdd <CMCylinderState>("Cylinder", this); mISM.CreateAndAdd <CMZoomOutState>("ZoomOut", this); mISM.CreateAndAdd <CMZoomInState>("ZoomIn", this); mISM.Push("Plane"); }
protected virtual void MakeISM() { mISM = new ISMStateMachine <ScreenMeshHalfCameraController>(this); mISM.CreateAndAdd <SMHIdleState>("Idle", this); mISM.CreateAndAdd <SMHDragState>("Drag", this); mISM.CreateAndAdd <SMHZoomOutState>("ZoomOut", this); mISM.CreateAndAdd <SMHZoomInState>("ZoomIn", this); mISM.CreateAndAdd <SMHBounceState>("Bounce", this); mISM.CreateAndAdd <SMHBounceDragState>("BounceDrag", this); mISM.Push("Idle"); }
protected virtual void MakeISM() { mISM = new ISMStateMachine <WideAngleCameraController>(this); mISM.CreateAndAdd <WAIdleState>("Idle", this); mISM.CreateAndAdd <WADragState>("Drag", this); mISM.CreateAndAdd <WAZoomOutState>("ZoomOut", this); mISM.CreateAndAdd <WAZoomInState>("ZoomIn", this); mISM.CreateAndAdd <WABounceState>("Bounce", this); mISM.CreateAndAdd <WAPullEnergyState>("PullEnergy", this); mISM.CreateAndAdd <WAPatrolDragState>("PatrolDrag", this); mISM.Push("Idle"); }