Пример #1
0
    void ShowGroupPoints(string message)
    {
        string type = message.Split('*')[0];

        Enums.PointControll pcontroll = (Enums.PointControll)Enum.Parse(typeof(Enums.PointControll), type);
        switch (pcontroll)
        {
        case Enums.PointControll.All:
            foreach (KeyValuePair <int, List <Transform> > item in pointmap)
            {
                ControlAllPointGizmo(true, item.Value);
            }
            break;

        case Enums.PointControll.ShutDownAll:
            foreach (KeyValuePair <int, List <Transform> > item in pointmap)
            {
                ControlAllPointGizmo(false, item.Value);
            }
            break;

        case Enums.PointControll.Choise:
            string choise = message.Split('*')[1];
            int    index  = int.Parse(choise);
            foreach (KeyValuePair <int, List <Transform> > item in pointmap)
            {
                bool active = false;
                if (item.Key == index)
                {
                    active = true;
                }
                ControlAllPointGizmo(active, item.Value);
            }
            break;

        default:
            break;
        }
    }
 void DropdownCallBack(int index)
 {
     dropdownindex = index;
     Enums.PointControll pcontroll = (Enums.PointControll)index;
     MSGCenter.Execute(pcontroll.ToString(), choiseindex.ToString());
 }