private void OnCopySettings(object data) { GameObject gameObject = (GameObject)data; Automatable component = gameObject.GetComponent <Automatable>(); if ((Object)component != (Object)null) { automationOnly = component.automationOnly; } }
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; } } }
private static void Postfix(Automatable ___targetAutomatable) { UpdateSweepBotStationStorage(___targetAutomatable); }
private static void Postfix(Automatable __instance) { UpdateSweepBotStationStorage(__instance); }