29 lines · 623 B · JavaScript
RawDownload
////  fireworksLaunchButtonEntityScript.js////  Created by Eric Levin on 3/7/2016//  Copyright 2016 High Fidelity, Inc.////  This is the chapter 1 entity script of the fireworks tutorial////  Distributed under the Apache License, Version 2.0.   (function() {    Script.include("../../libraries/utils.js");    var _this;    Fireworks = function() {      _this = this;    };     Fireworks.prototype = {       preload: function(entityID) {        _this.entityID = entityID;       }     };     // entity scripts always need to return a newly constructed object of our type    return new Fireworks();  });