public void Pick(int code) { if (code == -1) { return; } if (select != frames[code]) { ReleasePick(); } Test.instance.currFrame = code; select = frames[code]; select.Pick(); EventListUpdate(); }
public int Pick(FrameScript frame) { if (select != frame) { ReleasePick(); select = frame; select.Pick(); EventListUpdate(); return(int.Parse(select.name)); } else { DisableEventList(); ReleasePick(); } return(-1); }