internal PO_Manager() { try { InitialiseLogic(); } catch (TypeLoadException) { Enabled = false; Logic = new PO_LogicDisabled(); } }
private void InitialiseLogic() { if (isPOEnabled()) { Enabled = true; Logic = new PO_LogicEnabled(); } else { Enabled = false; Logic = new PO_LogicDisabled(); } }
private void InitialiseLogic() { if (isModEnabled()) { Enabled = true; //Logic = new PO_LogicEnabled(); gameObject = new GameObject("MIT_POLogic"); gameObject.AddComponent <PO_LogicEnabled>(); Logic = gameObject.GetComponent <PO_LogicEnabled>(); } else { Enabled = false; Logic = new PO_LogicDisabled(); } }