private void EventClick3DObj(object[] args) { if (args == null || args.Length != 1) { return; } if (MapUtil.m_SelectId == 0 || MapUtil.m_SelectOK) { return; } Click3DCheck.RayClickInfo info = (Click3DCheck.RayClickInfo)args[0]; if (MapUtil.IsWallLayer(info.col.gameObject.layer)) { RayClickPos fp = new RayClickPos(); fp.pos = info.pos; fp.wallType = MapUtil.WallLayer2WallEnum(info.col.gameObject.layer); //JerryDrawer.Draw<DrawerElementCube>() // .SetColor(Color.black) // .SetLife(3f) // .SetPos(fp.pos) // .SetSize(Vector3.one) // .SetWire(false) // .SetSizeFactor(0.2f); JerryEventMgr.DispatchEvent(Enum_Event.SetFurn2Pos.ToString(), new object[] { fp }); } }
private void EventClick3DDown(object[] args) { if (!GameApp.Inst.EditorMode) { return; } if (args == null || args.Length != 1) { return; } Click3DCheck.RayClickInfo info = (Click3DCheck.RayClickInfo)args[0]; if (info.col.gameObject != this.gameObject) { return; } if (!m_Selected) { return; } m_InDraging = true; this.StopCoroutine("IE_DoDrag"); this.StartCoroutine("IE_DoDrag"); }
private void EventClickDown(object[] args) { if (args == null || args.Length != 1) { return; } Click3DCheck.RayClickInfo info = (Click3DCheck.RayClickInfo)args[0]; //点到选中的物体,是移动物体,不移动镜头 if (info.col == null || info.col.gameObject.layer != LayerMask.NameToLayer(Enum_Layer.ActiveFurniture.ToString())) { OnCameraDown(true); } else { OnCameraDown(false); } }
private void EventClick3DObj(object[] args) { if (!GameApp.Inst.EditorMode) { return; } if (args == null || args.Length != 1) { return; } Click3DCheck.RayClickInfo info = (Click3DCheck.RayClickInfo)args[0]; if (info.col.gameObject != this.gameObject) { return; } if (!m_Selected) { SelectSelf(); return; } }