コード例 #1
0
    // Button select upon on BAD choice being selected
    public void ChooseGood()
    {
        // Play Button Click SFX
        FindObjectOfType <AudioManager>().Play("ButtonClick");

        // DISABLE stat increase text from transition in
        textBadResp.GetComponent <AlphaTransition>().canIncrease  = false;
        textStatGood.GetComponent <AlphaTransition>().canIncrease = false;

        // Make the buttons disappear
        choices.GetComponent <CanvasGroup>().alpha = 0;

        chooseBad     = false;
        chooseNeutral = false;
        chooseGood    = true;

        // Increase enemy's bullet damage
        gm.TextStatGood();

        // Increase the player's morality
        gm.morality++;

        // Close Dialogue box
        StartCoroutine("CloseDialogue");

        // Open player dialogue;
        StartCoroutine(OpenPlayerDialogue());
    }