void OnDialogEnded() { if (GetGlobalVariable.Bool("GlobalVariables.Platform6")) { StartCoroutine(FadeInColor(0)); } else if (GetGlobalVariable.Bool("GlobalVariables.Platform5")) { StartCoroutine(FadeInColor(-33)); } else if (GetGlobalVariable.Bool("GlobalVariables.Platform4")) { StartCoroutine(FadeInColor(-66)); } }
// Update is called once per frame void OnDialogEnded() { if (triggered) { return; } switch (changeOn) { case ChangeOn.boolTrue: if (GetGlobalVariable.Bool(variableToAppearOn)) { triggered = true; } break; case ChangeOn.boolFalse: if (!GetGlobalVariable.Bool(variableToAppearOn)) { triggered = true; } break; case ChangeOn.intLower: if (GetGlobalVariable.Int(variableToAppearOn) < limit) { triggered = true; } break; case ChangeOn.intHigher: if (GetGlobalVariable.Int(variableToAppearOn) > limit) { triggered = true; } break; } if (triggered) { Appear(true); } }
private void Start() { switch (changeOn) { case ChangeOn.boolTrue: if (GetGlobalVariable.Bool(variableToAppearOn)) { triggered = true; } break; case ChangeOn.boolFalse: if (!GetGlobalVariable.Bool(variableToAppearOn)) { triggered = true; } break; case ChangeOn.intLower: if (GetGlobalVariable.Int(variableToAppearOn) < limit) { triggered = true; } break; case ChangeOn.intHigher: if (GetGlobalVariable.Int(variableToAppearOn) > limit) { triggered = true; } break; } Appear(triggered); camMove = FindObjectOfType <CameraMovement>(); camShake = FindObjectOfType <CameraShake>(); }