public virtual void Fire0UpReceived(GameObject sender) { if (!SelectedBy.Contains(sender)) { return; } SelectedBy.Remove(sender); OnDeselected?.Invoke(sender); OnFire0Up?.Invoke(sender); }
public virtual void Fire0DownReceived(GameObject sender) { if (SelectedBy.Contains(sender)) { return; } SelectedBy.Add(sender); OnSelected?.Invoke(sender); OnFire0Down?.Invoke(sender); //do we have a button - click it! _button?.onClick.Invoke(); }