Exemplo n.º 1
0
    public override void OnInspectorGUI()
    {
        DrawDefaultInspector();

        TestGameData myScript = (TestGameData)target;

        if (GUILayout.Button("Send Data"))
        {
            myScript.SendGameData();
        }

        if (Application.isEditor)
        {
            EditorGUILayout.HelpBox("Must be running the game", MessageType.Warning);
        }
    }
Exemplo n.º 2
0
 public void UpdateEvent(ref TestGameData data)
 {
     m_ipt.text = "Name:" + data.playerName +
                  ",level:" + data.playerLevel +
                  ",exp:" + data.playerExp;
 }
Exemplo n.º 3
0
 public void Start()
 {
     m_data = new TestGameData();
 }