示例#1
0
        public static void ModifyGazeIcon(string _uuid, int _icon)
        {
            if (!sightTriggers.ContainsKey(_uuid))
            {
                return;
            }
            SightTrigger trigger = sightTriggers[_uuid].GetComponent <SightTrigger>();

            trigger.UpdateIcon(_icon);
        }
示例#2
0
        public static void ModifyIcon(string _uuid, int _icon)
        {
            if (!sightTriggers.ContainsKey(_uuid))
            {
                return;
            }

            Transform    trigger = sightTriggers[_uuid];
            SightTrigger cpt     = trigger.GetComponent <SightTrigger>();

            if (null == cpt)
            {
                return;
            }

            cpt.UpdateIcon(_icon);
        }