private IEnumerator OnDeserialized() { if (base.GetComponent <EmptyObjectIdentifier>()) { UnityEngine.Object.Destroy(base.gameObject); yield break; } if (BoltNetwork.isRunning) { while (!base.entity || !base.entity.isAttached) { yield return(null); } } if (this._color.a > 0f) { int a = ColorEx.ClosestColorIndex(this._color, new Color[] { Color.white, Color.yellow, Color.green, Color.magenta, Color.red, Color.blue }); this._color.a = -1f; this._overlayIcon.SetColorIndex(Mathf.Max(a, 1)); } this.SetTargetColor(); yield break; }