private void Awake() { button = GetComponent <Button>(); button.onClick.AddListener(() => ChangeAction()); setIconBehaviour = GetComponentInChildren <ISetIcon>(); actions = GetComponents <ActionBase>(); actionPointsController = GetComponentInParent <ISubject <ActionPointsArgs> >(); }
private void Awake() { setIconBehaviour = GetComponentInChildren <ISetIcon>(); actions = GetComponents <ActionBase>(); }