在场景中添加UGUI的Button按钮
然后在在脚本中写添加的事件
//声明UI
using UnityEngine.UI;
//声明场景的跳转
using UnityEngine.SceneManagement;
//战士模型 弓箭手模型
GameObject m_Warrior, m_Archer;
//战士按钮 弓箭手按钮 创建角色按钮
Button soldierBtn, ancherBtn, createBtn;
//输入框
InputField inputField;
Transform root;
在Start (){}中写获取按钮组件
void Start () {