private void OnCopySettings(object data)
    {
        GameObject  gameObject = (GameObject)data;
        Automatable component  = gameObject.GetComponent <Automatable>();

        if ((Object)component != (Object)null)
        {
            automationOnly = component.automationOnly;
        }
    }
Ejemplo n.º 2
0
 public override void SetTarget(GameObject target)
 {
     base.SetTarget(target);
     if ((Object)target == (Object)null)
     {
         Debug.LogError("The target object provided was null");
     }
     else
     {
         targetAutomatable = target.GetComponent <Automatable>();
         if ((Object)targetAutomatable == (Object)null)
         {
             Debug.LogError("The target provided does not have an Automatable component");
         }
         else
         {
             allowManualToggle.isOn             = !targetAutomatable.GetAutomationOnly();
             allowManualToggleCheckMark.enabled = allowManualToggle.isOn;
         }
     }
 }
Ejemplo n.º 3
0
 private static void Postfix(Automatable ___targetAutomatable)
 {
     UpdateSweepBotStationStorage(___targetAutomatable);
 }
Ejemplo n.º 4
0
 private static void Postfix(Automatable __instance)
 {
     UpdateSweepBotStationStorage(__instance);
 }