public override void onObjectSelected(SimObject obj) { // Select datablock of object if this is a GameBase object. if (obj.isMemberOfClass("GameBase")) { this.selectDatablock(obj.getDataBlock()); } else if (obj.isMemberOfClass("SFXEmitter") && obj["track"].isObject()) { this.selectDatablock(obj["track"].AsString()); } else if (obj.isMemberOfClass("LightBase") && obj["animationType"].isObject()) { this.selectDatablock(obj["animationType"].AsString()); } }