//鼠标悬停事件(基于碰撞体) void OnMouseOver() { if (Clickcontrol.isDrag) { magic.drag(int.Parse(this.tag)); } if (Input.GetMouseButton(1)) { magic.RclickP(int.Parse(this.tag)); } }
//鼠标悬停事件(基于碰撞体) void OnMouseOver() { if (Clickcontrol.isDrag) { if (magic.drag(int.Parse(this.tag))) { //添加转换特效 //判断是否是添加第一个节点 //if (MagicCore.Instance.getRoute().Count == 1) //{ // GameObject.Find("MagicEventSystem").GetComponent<Clickcontrol>().newLineTransfer(false,true,PointColor.white); //} //else //{ GameObject.Find("MagicEventSystem").GetComponent <Clickcontrol>().newLineTransfer(true); //} } } if (Input.GetMouseButton(1)) { magic.RclickP(int.Parse(this.tag)); } }