Пример #1
0
 public void ButtonADown()
 {
     if (isSkippableWith.A && !isTranslating && (!canOnlySkipAfterTime || (canOnlySkipAfterTime && timer <= 0)))
     {
         CameraStepSkipButtons newCameraStepSkipButtons = new CameraStepSkipButtons();
         newCameraStepSkipButtons.A = true;
         NextStep(newCameraStepSkipButtons);
     }
 }
Пример #2
0
    public void NextStep(CameraStepSkipButtons SkippedWith)
    {
        timer           = -1;
        isSkippableWith = new CameraStepSkipButtons();
        isTranslating   = false;

        //characters = null; //Uneeded
        characterID = -1;

        GetComponent <Follow>().target = null;

        //if (isInGameplay) {
        //	isInGameplay = false;
        //}
        currentStep++;
        FindStep(SkippedWith);
    }
Пример #3
0
    void FindStep(CameraStepSkipButtons SkippedWith)
    {
        timer           = -1;
        isSkippableWith = new CameraStepSkipButtons();
        GetComponent <Camera>().orthographicSize = gameplayCameraFov;
        LevelsManager.instance.StartLevel();
        PlayerController.instance.TakeControlOfCharacter(0);         //Set both as active (and then as stop)

        //CameraEdit
//		CameraPhase[] CameraPhases = FindObjectsOfType(typeof(CameraPhase)) as CameraPhase[];
//
//		foreach (CameraStep thisCameraStep in CameraPhases) {
//			if (thisCameraStep.id == currentStep && thisCameraStep.isSkippableWith == SkippedWith) {
//				if (thisCameraStep.isLastStep) {
//					Application.Quit();
//				} else {
//					Vector3 newPosition = thisCameraStep.transform.position;
//					newPosition.z = cameraZ;
//					transform.position = newPosition;
//
//					if (thisCameraStep.startGameplay) {
//						timer = -1;
//						isSkippableWith = new CameraStepSkipButtons();
//						if (thisCameraStep.cameraFov > 0) GetComponent<Camera>().orthographicSize = thisCameraStep.cameraFov;
//						else GetComponent<Camera>().orthographicSize = gameplayCameraFov;
//						LevelsManager.instance.StartLevel();
////						characters.Clear();
////						Character[] tempList = GameObject.FindObjectsOfType(typeof(Character)) as Character[];
////						foreach (Character thisObj in tempList) {
////							characters.Add (thisObj);
////						}
//						PlayerController.instance.TakeControlOfCharacter(0); //Set both as active (and then as stop)
//					} else {
//						timer = thisCameraStep.time;
//						isSkippableWith = thisCameraStep.isSkippableWith;
//						canOnlySkipAfterTime = thisCameraStep.canOnlySkipAfterTime;
//						if (thisCameraStep.cameraFov > 0) GetComponent<Camera>().orthographicSize = thisCameraStep.cameraFov;
//						else GetComponent<Camera>().orthographicSize = cutsceneCameraFov;
//					}
//				}
//				break;
//			}
//		}
    }