private void NotAkeywOrDPlzSXz() { this.sharingModelData = new SyncSpawnedObject(); // if we don't have a spawn manager try to auto find one if (this.SpawnManager == null) { this.SpawnManager = AutoSharedObjectPrefabManager.Instance.GetComponent <PrefabSpawnManager>(); } // we'll use this status flag to track success or failure bool status = false; // if we still don't have a spawn manager we're out of luck if (this.SpawnManager != null) { Debug.Log("Calling spawn" + Environment.StackTrace); // however, if we do have one, we try to use it status = this.SpawnManager.Spawn(sharingModelData, this.transform.position, this.transform.rotation, this.transform.localScale, this.transform.parent == null ? null : this.transform.parent.gameObject, this.name, true); Debug.Log("status " + status); } // depending on the status flag, we communicate success or failure if (!status) { // This could occur if this object is not a prefab, or if that prefab is not registered // with the PrefabSpawnManager Debug.LogWarning("Unable to spawn sharing representation of '" + transform.name + "'"); this.sharingModelData = null; } else { Debug.Log("Spawned sharing representation of '" + transform.name + "'"); isInitialized = true; } }