///<Summary> /// Is the Alienware LightFX Loaded? /// Can only be loaded when AlienFX has been init or Loaded ///</Summary> public void loadAlienFX() { if(!isAlienFXLoaded()) { AlienFX.Load(); keyboardLight = AlienFX.GetLightByName("Keyboard"); if(keyboardLight == null) { Debug.LogError("Keyboard is null"); } else { zoneAll = AlienFX.GetZoneByPosition(LFX_Position.LFX_All); ChangeColor(Color.green); } } else { Debug.LogWarning("Alienware LightFX is not loaded"); } }
public static void RemoveZone(FXZone zone) { zones.Remove(zone); }
public static FXZone GetZoneByPosition(int priority, LFX_Position position) { if (!isLoaded) Load(); if (!isInit) return null; FXZone result = new FXZone(position, priority); zones.Add(result); return result; }