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));
     }
 }
예제 #2
0
    // 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);
        }
    }
예제 #3
0
    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>();
    }