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
| /* * * * * | |
| * URLParameters.cs | |
| * ---------------- | |
| * | |
| * This singleton script provides easy access to any URL components in a Web-build. | |
| * Since Unity is about to deprecate the old "Application.ExternalEval" api we can | |
| * no longer inject our javascript into the browser. We now need to use a jslib file | |
| * which holds the javascript part. This script, when imported in a project, will | |
| * automatically extract a jslib file into the Plugins folder named: "URLParameters.jslib". | |
| * |
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
| // NOTE DONT put in an editor folder | |
| using UnityEngine; | |
| public class StatsBarAttribute : PropertyAttribute | |
| { | |
| public string valueMax; | |
| public StatsBarColor color; | |
| public StatsBarAttribute(string valueMax = null, StatsBarColor color = StatsBarColor.Red) |