Skip to content

Instantly share code, notes, and snippets.

Created Apr 1, 2018
What would you like to do?
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.UI;
public class test : MonoBehaviour
public void SetValueByField( string key)
string str = this.GetComponent<InputField>().text;
if (str == "" || key == "") return;
SpriteMove.SetDict(key, float.Parse(str));
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment