public void addWire( IIwWire wire ) { if ( wire == null ) { Debug.LogError ( "Error in " + this + " Wire can't be null." ); return; } if ( hasWire ( wire.name ) ) { Debug.LogError ( "Error in " + this + " Wire '" + wire.name + "' already registered." ); return; } lock ( _wireList ) { _wireList[wire.name] = wire; wire.dispatcher = _dispatcher; wire.initialize (); } }
public void addWire( IIwWire wire ) { System.Diagnostics.Debug.Assert (_wireMgr == null, "Wire Manager not exists!!!"); _wireMgr.addWire (wire); }