string IScriptableObject.this[ string property ]
{
get
{
IPropertyCommand command;
if ( _classParameters.TryGetValue( property, out command ) )
{
return command.Get( this );
}
else
{
LogManager.Instance.Write( "{0}: Unrecognized parameter '{1}'", this.GetType().Name, property );
}
return null;
}
set
{
IPropertyCommand command;
if ( _classParameters.TryGetValue( property, out command ) )
{
command.Set( this, value );
}
else
{
LogManager.Instance.Write( "{0}: Unrecognized parameter '{1}'", this.GetType().Name, property );
}
}
}