Skip to content
Permalink
5a1d10e567
Go to file
 
 
Cannot retrieve contributors at this time
23 lines (19 sloc) 440 Bytes
using UnityEngine;
using System.Collections;
using UnityEngine.UI;
public class EnemyFight : MonoBehaviour {
// Use this for initialization
void Start () {
var input = gameObject.GetComponent <InputField>();
var se= new InputField.SubmitEvent();
se.AddListener(SubmitName);
input.onEndEdit = se;
}
private void SubmitName(string arg0)
{
Debug.Log (arg0);
}
// Update is called once per frame
void Update () {
}
}
You can’t perform that action at this time.