public string GetShowName() { if (infoType == "PROP") { return(propPrefab.GetLocalizedTitle() + (isBasicShape ? " (Basic)" : string.Empty)); } else // if (infoType == "BUILDING") { return(buildingPrefab.GetLocalizedTitle() + (isBasicShape ? " (Basic)" : string.Empty)); } }
public static bool Prefix(ref PropInfo info, ref Vector3 position, ref float angle, ref bool single) { if (!(Input.GetKey(KeyCode.LeftShift) || Input.GetKey(KeyCode.RightShift))) { return(true); } else { #if DEBUG string str = String.Format("Invoking prop at:{0}, angle:{1}, info:{2}", position, angle, info.GetLocalizedTitle()); LoggerUtils.Log(str); #endif PropUnlimiterManager.instance.SetUnlimitedProp(info.m_prefabDataIndex, position, angle, single); PropTool.DispatchPlacementEffect(position, true); PropManager.instance.UpdateProp(0); PropManager.instance.UpdatePropRenderer(0, true); return(false); } }