public override void AddEventOnListener(MainInstrument mI)
 {
     mI.onStartEvent.AddListener(ChangeOnStart);
     mI.onClickEvent.AddListener(ChangeOnClick);
     mI.onUpdatEvent.AddListener(ChangeOnUpdate);
     mainInstrument = mI;
 }
Beispiel #2
0
    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);
 }
Beispiel #4
0
 public abstract void AddEventOnListener(MainInstrument mI);