Example #1
0
 // this is called by storage
 public void Init(UIStorageBase sb, int id, OnClick clickFunc)
 {
     slot_id = id;
     storage = sb;
     AddOnClick(clickFunc);
     // more here
 }
Example #2
0
 // this is called by storage
 public void Init(UIStorageBase sb, int id, OnFunction clickFunc, OnFunction enterFunc, OnFunction exitFunc)
 {
     slot_id = id;
     storage = sb;
     AddOnClick(clickFunc);
     AddOnEnter(enterFunc);
     AddOnExit(exitFunc);
     // more here
 }