Exemple #1
0
 void Start()
 {
     _ASPText = skillTreeButton.transform.FindChild("ASP/text").GetComponent <MadText>();
     backToMenuButton.onMouseDown += backToMenuButton.onTap = (sprite) => { MadLevel.LoadFirst(); };
     skillTreeButton.onMouseDown  += skillTreeButton.onTap = (sprite) => { MadLevel.LoadLevelByName("Skill Tree"); };
     nextWorld.onMouseDown        += nextWorld.onTap = (sprite) => { setLaboratoryWorld(); };
     previousWorld.onMouseDown    += previousWorld.onTap = (sprite) => { setHauntedHouseWorld(); };
     _ASPText.text = PlayerData.Instance.data.talentPoints.ToString();
 }
Exemple #2
0
    void OnClick()
    {
        GameObject backgroundMusic = GameObject.Find("Background Music");

        if (backgroundMusic != null)
        {
            Destroy(backgroundMusic);
        }
        MadLevel.LoadFirst();
    }