public static void ModifyGazeIcon(string _uuid, int _icon) { if (!sightTriggers.ContainsKey(_uuid)) { return; } SightTrigger trigger = sightTriggers[_uuid].GetComponent <SightTrigger>(); trigger.UpdateIcon(_icon); }
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); }