Beispiel #1
0
    public void Init()
    {
        cPicker = transform.GetComponentInParent <CharacterPicker>();

        myButton.onClick.RemoveAllListeners();
        myButton.onClick.AddListener(() => { cPicker.SelectSlot(this); });

        LockedUI.onClick.RemoveAllListeners();
        LockedUI.onClick.AddListener(() => { cPicker.BuyAdditionalSlots(); });
    }
Beispiel #2
0
//	public void OnPointerClick(PointerEventData pData)
//	{
//		//Debug.Log("!!!!");
//		cPicker.SelectSlot(this);
//	}
//

    public void Init()
    {
        this.cPicker = (CharacterPicker)this.transform.GetComponentInParent <CharacterPicker>();

        myButton.onClick.RemoveAllListeners();
        myButton.onClick.AddListener(() => { cPicker.SelectSlot(this); });
        //slotButton.onClick.AddListener((p) => {this.OnPointerClick(p);});

        LockedUI.onClick.RemoveAllListeners();
        LockedUI.onClick.AddListener(() => { cPicker.BuyAdditionalSlots(); });
    }