public void giveReward()
    {
        achievement.Play();

        Vector3 seaLevel = theOcean.transform.position;

        theOcean.changeSeaLevel(seaLevel.y - rewardSealevelDrop);

        CoconutText.GetComponent <CoconutNumber>().add(rewardCoconut);
    }
Exemple #2
0
    public void giveReward()
    {
        Debug.Log("WaterBottleChallenge giveReward is called");

        achievement.Play();

        //sea level drop by 50, everytime this challenge is completed
        Vector3 seaLevel = theOcean.transform.position;

        theOcean.changeSeaLevel(seaLevel.y - 50);

        //Coconuts(currency) change to be added

        /*
         * Do the money stuff here
         */

        CoconutText.GetComponent <CoconutNumber>().add(300);
    }
Exemple #3
0
    public void giveReward()
    {
        Debug.Log("OnBoardingChallenge give reward");
        achievement.Play();
        Vector3 seaLevel = theOcean.transform.position;

        theOcean.changeSeaLevel(seaLevel.y - rewardSealevelDrop);

        CoconutText.GetComponent <CoconutNumber>().add(rewardCoconut);
        PlayerPrefs.SetInt("ONBOARDING", 1);
    }