/// <summary> /// Awake this instance. /// </summary> void Awake() { Distance = GetComponent<AllowableDistance>(); }
public void OnEnable() { myDistance = (AllowableDistance)target; }