Beispiel #1
0
 public void Start()
 {
     MenuBackgroundSound.PlayBackground();
     Button[] buttons = GetComponentsInChildren <Button>(true);
     foreach (Button b in buttons)
     {
         b.onClick.AddListener(PlayButtonSound);
     }
 }
Beispiel #2
0
    private void Awake()
    {
        Events.OnSetMoney        += OnSetMoney;
        Events.OnRequestMoney    += OnRequestMoney;
        Events.OnHealthDestroyed += OnHealthDestroyed;
        Events.OnEndLevel        += OnEndLevel;

        BackgroundMusic.PlayBackground();
    }