static void OnItemGrabbedRight(InventoryItemSpec iis) { if (iis == null) { return; } // mod.Logger.Log(string.Format("Picked up a(n) {0} in the right hand.", iis.itemName)); JobOverview jo = iis.GetComponent <JobOverview>(); if (jo != null) { holdingRight = new JobDispatch(jo.job); showing = false; } else { JobBooklet jb = iis.GetComponent <JobBooklet>(); if (jb != null) { holdingRight = new JobDispatch(jb.job); showing = false; } } }
static void OnItemUngrabbedRight(InventoryItemSpec iis) { holdingRight = null; }