public void Start() { int gateNum = ((ItemDef.LeverGateItem)item).Number; var gateName = $"{ItemDef.LeverGateItem.GateNamePrefix}{gateNum}"; gameObject.name = gateName; if (ItemManager.Instance.setupMode) { numDisp = NameDisp.Create(gameObject, $"{gateNum}"); if (gateNum == 0) { var exists = FindObjectsOfType <Gate>().Length; Setup(Operation.SetGate, exists); } } }
public void Start() { int gateNum = ((ItemDef.LeverGateItem)item).Number; var gateName = $"{ItemDef.LeverGateItem.GateNamePrefix}{gateNum}"; playMakerFSM.GetAction <FindGameObject>("Initiate", 2).objectName = gateName; if (ItemManager.Instance.setupMode) { numDisp = NameDisp.Create(gameObject, $"{gateNum}"); if (gateNum == 0) { var exists = FindObjectsOfType <Lever>().Length; Setup(Operation.SetGate, exists); } } }