AddCandyCorn() public method

public AddCandyCorn ( int candyCorn ) : void
candyCorn int
return void
Exemplo n.º 1
0
    public void CloseDialogue()
    {
        Debug.Log(CurrentSpeaker.gameObject.name);
        if (CurrentSpeaker.gameObject.name == "The Witch")
        {
            Debug.Log("detected");
            // crossfade animation;
            LoadForestLevel();
        }

        DisplayDialogueBubble = false;
        ActiveLineIndex       = 0;
        DialogueUI.Close();

        if (!Conversation.IsCandyCornRewardClaimed())
        {
            CandyCornManager.AddCandyCorn(Conversation.ClaimReward());
        }
    }
Exemplo n.º 2
0
    private void OnAllyWin()
    {
        Debug.Log("!!!!Allies Win!!!!");
        CandyCornManager.AddCandyCorn(TotalCandyReward);

        BattleVictoryBanner.GetComponentInChildren <TMP_Text>().text = "You got " + TotalCandyReward;

        StartCoroutine(ShowVictoryBanner());

        CurrentCombatZone.GetComponent <CombatZone>().DestroyCombatZone();

        if (Sield != null)
        {
            CameraRig.SetTargetGO(Sield);
            CameraRig.MoveCameraRelative(CameraRig.DefaultOffset, CameraRig.DefaultRotation);
        }

        else if (Ganiel != null)
        {
            CameraRig.SetTargetGO(Ganiel);
            CameraRig.MoveCameraRelative(CameraRig.DefaultOffset, CameraRig.DefaultRotation);
        }
    }
Exemplo n.º 3
0
 private void OnAddCandiesPressed()
 {
     CandyCornManager.AddCandyCorn(ADDCANDIES);
 }