// Use this for initialization void Start() { if (PlayerPrefab == null) { Debug.LogError("PlayerPrefab == null"); } if (comunicationManager == null) { Debug.LogError("comunicationManager == null"); comunicationManager = this.transform.GetComponent <FXRunnerMQTT>(); } PlayersDict = new Dictionary <string, GameObject>(); }
// Use this for initialization void Start() { MQTTManager = GameObject.Find("MQTTManager").GetComponent <FXRunnerMQTT>(); }