KM44OG3YNGF45JHSB4HOGBIDHNWS4N6LEODIRYNN6YAPPMEU5I6QC
BJF3R3X6UV7VZ4FUKHMPMYFN3RDEKLNXHLHA2H7QLQVRADSPZD4QC
XY5AU5CHBQBNCXWODIAFV2LOQVZMSHG3C4EEGQAMVXBRRKCQNPPQC
2ZZM2HIS7HNIMK3Q6ALHIMQYLKNIHUOL6FJ57O6SR77VAMEINLWAC
62YQ7EMUYX7GS3AB6FAJDKNX53LVG6T2EH6NMVS6JV36J5VCOKIAC
O236B5LO6PHJ4TPZGYXDVSLB5EGXXRRLYYVWI46DPL5LEGXEIHZQC
VZRSH4U473FCZOP5EXURPXXN5J6F3ZLT435YY7A2JHLG2ZZB5KLQC
S5OSCH7CRN2YEKVTCTJXNLYR2B3PEGCCBUGTN2M6QOCKBNJR62NAC
FIMVA3BI72IWMBRN5T3PKDCKSJW667BH25INKDWSPWGHLRKCNAPAC
KAROCU3SAOGWWSFXGCLE5OW76VTDJR4HDIVTK62BIAESN5SOHVDAC
IA2O33JCJVSJ3IVBBHX2XQU4BCPL3X6JDDZ2R2KNGUFPWXAUKO7QC
CD5FF75KTOBTMVMTMCKMR6F5DFKOF26I5K43ITNHGBI3ZAZHA4RAC
HXTSBPAP75A7EC4RKWYQMVPPHPNZFPHUORBZWDHGEB6MPAGI7G7AC
public void OnPointerClick(PointerEventData eventData) {
switch (eventData.button) {
case PointerEventData.InputButton.Left:
HandleSelectWeapon();
break;
case PointerEventData.InputButton.Right:
break;
}
}
void HandleSelectWeapon() {
eventAggregator.InvokeOnWeaponSelected(this, new WeaponSelectedArgs(_weapon));
}
weaponButton.onClick.RemoveAllListeners();
weaponButton.onClick.AddListener(() => {
eventAggregator.InvokeOnWeaponSelected(this, new WeaponSelectedArgs(_weapon));
});
public void OnPointerClick(PointerEventData eventData) {
switch (eventData.button) {
case PointerEventData.InputButton.Left:
HandleSelectPartyMember();
break;
case PointerEventData.InputButton.Right:
break;
}
}
void HandleSelectPartyMember() {
_eventAggregator.InvokeOnPartyMemberSelected(this, new PartyMemberSelectedArgs(partyMember));
}
eventAggregator.OnPartyMemberSelected += EventAggregator_OnPartyMemberSelected;
protected void OnDestroy() {
eventAggregator.OnUnitSelected -= EventAggregator_OnUnitSelected;
eventAggregator.OnPartyMemberSelected -= EventAggregator_OnPartyMemberSelected;
SelectedWeaver = null;
var combatFormSelectUI = Instantiate(combatFormSelectUIPrefab, transform).GetComponent<CombatFormSelectUI>();
CombatFormSelectUI combatFormSelectUI;
if (currentFormIndex < transform.childCount) {
combatFormSelectUI = transform.GetChild(currentFormIndex).GetComponent<CombatFormSelectUI>();
}
else {
combatFormSelectUI = Instantiate(combatFormSelectUIPrefab, transform).GetComponent<CombatFormSelectUI>();
}
}
protected void OnDestroy() {
eventAggregator.OnUnitSelected -= EventAggregator_OnUnitSelected;
eventAggregator.OnPartyMemberSelected -= EventAggregator_OnPartyMemberSelected;
SelectedWeaver = null;
public void OnPointerClick(PointerEventData eventData) {
switch (eventData.button) {
case PointerEventData.InputButton.Left:
HandleSelectForm();
break;
case PointerEventData.InputButton.Right:
break;
}
}
void HandleSelectForm() {
eventAggregator.InvokeOnCombatFormSelected(this, new CombatFormSelectedArgs(_combatForm));
}