internal void SetOverlay(OverlayObjectData mObjectData) { if (mObjectData == null) { return; } if (!Overlay) { Overlay = OverlayObject.Create(this, mObjectData); } else { Overlay.SetData(mObjectData); } }
internal void SetOverlay(OverlayObjectData oData) { if (oData == null || IsDisabled || Blocked) { return; } if (Overlay) { GameObject old = Overlay.gameObject; Destroy(old); } if (StaticBlocker) { GameObject old = StaticBlocker.gameObject; DestroyImmediate(old); } Overlay = OverlayObject.Create(this, oData, MBoard.TargetCollectEventHandler); Overlay.SetToFront(false); }