// Update is called once per frame void OnDialogEnded() { foreach (SoundContainer soundContainer in soundContainers) { if (GetGlobalVariable.Int(soundContainer.emotionMeterString) > 0) { return; } } }
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)); } }
string GetItem() { int maxValue = GetGlobalVariable.Int(variableNames[0]); int index = 0; for (int i = 1; i < variableNames.Length; i++) { int newValue = GetGlobalVariable.Int("GlobalVariables." + variableNames[i]); if (newValue > maxValue) { maxValue = newValue; index = i; } } return(onTextNames[index]); }
// 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>(); }