public override void AddEventOnListener(MainInstrument mI) { mI.onStartEvent.AddListener(ChangeOnStart); mI.onClickEvent.AddListener(ChangeOnClick); mI.onUpdatEvent.AddListener(ChangeOnUpdate); mainInstrument = mI; }
private void OnMouseDown() { if (mainInst == null) { mainInst = GetComponentInParent <MainInstrument>(); } //call the function of the child mainInst.Touched(); }
public override void AddEventOnListener(MainInstrument mI) { base.AddEventOnListener(mI); mI.onUpdatEvent.AddListener(ChangeOnUpdate); }
public abstract void AddEventOnListener(MainInstrument mI);