Created
April 1, 2018 05:17
-
-
Save kamera25/ce4fcdea38baec737866964a4ec1baa8 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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