This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| module.exports = function(grunt) { | |
| // most basic Grunt config with just livereloading | |
| // Project configuration. | |
| grunt.initConfig({ | |
| pkg: grunt.file.readJSON('package.json'), | |
| watch: { | |
| html: { | |
| files: 'index.html', |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <!-- DEVELOPMENT --> | |
| <script type="text/javascript" src="js/script.js" ></script> | |
| <!-- END DEVELOPMENT --> | |
| <!-- PRODUCTION | |
| <script type="text/javascript" src="js/script.min.js"></script> | |
| END PRODUCTION --> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| module.exports = function(grunt) { | |
| grunt.initConfig({ | |
| // (...) | |
| copy:{ | |
| // (...) | |
| options: { | |
| process: function (content) { | |
| content = content.replace(/<!-- DEVELOPMENT -->\s*.*\s*<!-- END DEVELOPMENT -->/g,''); | |
| content = content.replace(/<!-- PRODUCTION\s*(.*)\s*END PRODUCTION -->/g, '$1'); | |
| return content; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| using UnityEngine; | |
| using System.Collections; | |
| [ExecuteInEditMode] | |
| public class visibleCollider : MonoBehaviour { | |
| // The Collider itself | |
| private EdgeCollider2D thisCollider; | |
| // array of collider points | |
| private Vector2[] points; |
NewerOlder