/// <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>;
        }
Ejemplo n.º 2
0
        /// <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>;
        }