public virtual void OnCurrentProbe() { ProbeState p = (ProbeState)VisualGrid.availableStates[typeof(ProbeState)]; p.ptype = ProbeType.current; VisualGrid.ChangeState(typeof(ProbeState)); }
public virtual void OnVoltageProbe() { ProbeState p = (ProbeState)VisualGrid.availableStates[typeof(ProbeState)]; p.ptype = ProbeType.voltage; VisualGrid.ChangeState(typeof(ProbeState)); }