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);
        }
    }
Exemple #2
0
 public void UpdateEvent(ref TestGameData data)
 {
     m_ipt.text = "Name:" + data.playerName +
                  ",level:" + data.playerLevel +
                  ",exp:" + data.playerExp;
 }
Exemple #3
0
 public void Start()
 {
     m_data = new TestGameData();
 }