示例#1
0
 /// <summary>
 /// Sets the button up as a Background selection button
 /// </summary>
 public void setupButtonBackgrounds()
 {
     SelectButton.onClick.AddListener(() =>
     {
         ShopMenu m = FindObjectOfType <ShopMenu>();
         m.ClickBackground(indexPosition);
     });
 }
示例#2
0
 /// <summary>
 /// Sets the button up as a Character selection button
 /// </summary>
 public void setupButtonCharacter()
 {
     SelectButton.onClick.AddListener(() =>
     {
         //Did it like this because is was getting null pointers if i did it on any otherway
         ShopMenu m = FindObjectOfType <ShopMenu>();
         m.ClickCharacter(indexPosition);
     });
 }