public void giveReward() { achievement.Play(); Vector3 seaLevel = theOcean.transform.position; theOcean.changeSeaLevel(seaLevel.y - rewardSealevelDrop); CoconutText.GetComponent <CoconutNumber>().add(rewardCoconut); }
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); }
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); }