/// <summary> /// Awake runs as soon as possible and before any Start call. /// </summary> void Awake() { // Singleton. Instance = this; // Load API Constraints from resource file. var contents = Resources.Load("ApiConstraints") as TextAsset; ApiConstraints = Json.Deserialize(contents.text) as Dictionary<string, object>; ApiConstraints = ApiConstraints["apiConstraints"] as Dictionary<string, object>; }
/// <summary> /// Awake runs as soon as possible and before any Start call. /// </summary> void Awake() { // Singleton. Instance = this; // Load API Constraints from resource file. var contents = Resources.Load("ApiConstraints") as TextAsset; ApiConstraints = Json.Deserialize(contents.text) as Dictionary <string, object>; ApiConstraints = ApiConstraints["apiConstraints"] as Dictionary <string, object>; }