Example #1
0
    public void Init(core.Action act)
    {
        action = act;

        var actionData = action.Result.gameObject.GetComponent <ActionData>();

        if (actionData != null)
        {
            image.sprite = actionData.m_Sprite;
        }
    }
Example #2
0
    private void OnActionChanged(Action action)
    {
        if (m_Actions.Contains(action))
        {
            m_SelectedAction = action;

            if (OnSlotGroupActionSelected != null)
            {
                OnSlotGroupActionSelected.Invoke(m_SelectedAction);
            }
        }

        Deactivate();
    }
Example #3
0
 private void OnSlotGroupActionSelected(core.Action obj)
 {
     Debug.Log("Changed");
     Init(obj);
 }