Skip to content

Instantly share code, notes, and snippets.

@kamera25
Created April 1, 2018 05:17
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kamera25/ce4fcdea38baec737866964a4ec1baa8 to your computer and use it in GitHub Desktop.
Save kamera25/ce4fcdea38baec737866964a4ec1baa8 to your computer and use it in GitHub Desktop.
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