/// <summary> /// Deserializes object of the specified type serialized with this serializer. /// </summary> /// <param name="type">The type of the object to be deserialized.</param> /// <param name="value">String representation of the object to be deserialized.</param> /// <returns>A reference to the deserialized object.</returns> public object Deserialize(Type type, string value) { return(JS1.Deserialize(type, value, _knownTypes, _doPreprocessing)); }
void Awake( ) { //Get the JavaScript component jsScript = this.GetComponent<JS1>();//Don't forget to place the 'JS1' file inside the 'Standard Assets' folder }