private Vector2 _dragingPos = Vector2.zero; //拖拽变量 保存鼠标在mapbg的位置和 锚点的位置 public CommonMap(IMiniMapUiAdapter adapter) : base(adapter) { // adapter.Enable = false; if (UiCommon.UIManager.GetRootRenderMode().Equals(RenderMode.ScreenSpaceCamera)) { uiCamera = UiCommon.UIManager.UICamera; } }
public CommonMaxMap(IMiniMapUiAdapter adapter) : base(adapter) { this.adapter = adapter; adapter.Enable = false; if (UiCommon.UIManager.GetRootRenderMode().Equals(RenderMode.ScreenSpaceCamera)) { uiCamera = UiCommon.UIManager.UICamera; } SpriteComon.GetInstance().PreparedSprites(); }
public CommonMiniMap(IMiniMapUiAdapter adapter) : base(adapter) { this.adapter = adapter; }
public void SetMiniMapAdapter(IMiniMapUiAdapter _context) { this.adapter = _context; }
public PlayMarkCommn(IMiniMapUiAdapter _context) { this.adapter = _context; }
public DuquanCommon(IMiniMapUiAdapter _adapter) { this.adapter = _adapter; }
public void UpdateC4(IMiniMapUiAdapter adapter, float rate) { if (!adapter.isBombMode) { return; } _rate = rate; _isC4Drop = adapter.IsC4Drop; UIUtils.SetActive(c4Locate, adapter.IsC4Drop); if (adapter.IsC4Drop) { c4LocateRtf.anchoredPosition = new Vector2(adapter.C4DropPosition.x, adapter.C4DropPosition.z) * rate; //更新标记位置 } UIUtils.SetActive(ALocateRtf, true); UIUtils.SetActive(BLocateRtf, true); ALocateRtf.anchoredPosition = new Vector2(adapter.APosition.x, adapter.APosition.z) * rate; BLocateRtf.anchoredPosition = new Vector2(adapter.BPosition.x, adapter.BPosition.z) * rate; int C4SetStatus = adapter.C4SetStatus; if (C4SetStatus == 0) { UIUtils.SetActive(Anormal, true); UIUtils.SetActive(Bnormal, true); UIUtils.SetActive(Ared, false); UIUtils.SetActive(Bred, false); } else if (C4SetStatus == 1) { if (adapter.IsCampPass()) { UIUtils.SetActive(Anormal, false); UIUtils.SetActive(Bnormal, true); UIUtils.SetActive(Ared, true); UIUtils.SetActive(Bred, false); } else { UIUtils.SetActive(Anormal, false); UIUtils.SetActive(Bnormal, false); UIUtils.SetActive(Ared, true); UIUtils.SetActive(Bred, true); } } else if (C4SetStatus == 2) { if (adapter.IsCampPass()) { UIUtils.SetActive(Anormal, true); UIUtils.SetActive(Bnormal, false); UIUtils.SetActive(Ared, false); UIUtils.SetActive(Bred, true); } else { UIUtils.SetActive(Anormal, false); UIUtils.SetActive(Bnormal, false); UIUtils.SetActive(Ared, true); UIUtils.SetActive(Bred, true); } } }