So, just a simple Setup
New Scene, imported TNet, added empty GameObject and attached that script to it.
using UnityEngine;
using System.Collections;
public class Test : MonoBehaviour {
// Use this for initialization
void Start () {
}
// Update is called once per frame
void Update () {
Debug.Log("Host:"+TNManager.isHosting);
}
}
Why it is always returning "True"... regardless of whether there is any other TNet instance is in the scene, or any TNManager is in scene or anything else...
i cant get this value returning false... why? I think im doing it wrong!
Edith:
Okay... it is working... but only if isConnected.
Maybe it should return false, when its not connected to a server