private void LoadSkeletonData() { Dictionary <string, string> config = ConfigProperties.load(configFile); if (_skeletonPlayerGO == null) { _skeletonPlayerGO = new GameObject("SkeletonPlayer"); _skeletonPlayerGO.transform.position = Vector3.zero; _skeletonPlayerGO.transform.rotation = Quaternion.identity; _skeletonPlayerGO.transform.localScale = Vector3.one; _skeletonPlayer = _skeletonPlayerGO.AddComponent <FileListener>(); } _skeletonFileName = ""; if (config.ContainsKey("skeletonFileName")) { _skeletonFileName = config["skeletonFileName"]; } _skeletonPlayer.Initialize(_skeletonFileName); Debug.Log("has skele" + _skeletonPlayer.HasSkeleton()); }