public void Init(core.Action act) { action = act; var actionData = action.Result.gameObject.GetComponent <ActionData>(); if (actionData != null) { image.sprite = actionData.m_Sprite; } }
private void OnActionChanged(Action action) { if (m_Actions.Contains(action)) { m_SelectedAction = action; if (OnSlotGroupActionSelected != null) { OnSlotGroupActionSelected.Invoke(m_SelectedAction); } } Deactivate(); }
private void OnSlotGroupActionSelected(core.Action obj) { Debug.Log("Changed"); Init(obj); }