コード例 #1
0
        public override void OnInspectorGUI()
        {
            base.OnInspectorGUI();
            NetworkStatus status = (NetworkStatus)target;

            status.IpInput = GUILayout.TextField(status.IpInput, 3);

            if (GUILayout.Button("Reconnect") && Application.isPlaying)
            {
                status.OnReconnectClick();
            }
        }
コード例 #2
0
 void OnEnable()
 {
     _status = GetComponent <NetworkStatus>();
 }