private void CheckClick() { if (!activeVendor.MouseInsideMe) { Debug.Log(activeVendor.name); activeVendor.Toggle(false); activeVendor = null; } }
public bool Open(LimbVendor l) { if (activeVendor != null && l != activeVendor) { activeVendor.Toggle(false); } else if (l == activeVendor) { return(false); } activeVendor = l; l.Toggle(true); return(true); }