Example #1
0
 internal PO_Manager()
 {
     try
     {
         InitialiseLogic();
     }
     catch (TypeLoadException)
     {
         Enabled = false;
         Logic   = new PO_LogicDisabled();
     }
 }
Example #2
0
 private void InitialiseLogic()
 {
     if (isPOEnabled())
     {
         Enabled = true;
         Logic   = new PO_LogicEnabled();
     }
     else
     {
         Enabled = false;
         Logic   = new PO_LogicDisabled();
     }
 }
Example #3
0
 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();
     }
 }