public static void ModifyGazeColor(string _uuid, int _r, int _g, int _b, int _a) { if (!sightTriggers.ContainsKey(_uuid)) { return; } SightTrigger trigger = sightTriggers[_uuid].GetComponent <SightTrigger>(); trigger.UpdateColor(_r, _g, _b, _a); }
public static void ModifyColor(string _uuid, int _r, int _g, int _b, int _a) { if (!sightTriggers.ContainsKey(_uuid)) { return; } Transform trigger = sightTriggers[_uuid]; SightTrigger cpt = trigger.GetComponent <SightTrigger>(); if (null == cpt) { return; } cpt.UpdateColor(_r, _g, _b, _a); }