Example #1
0
	///<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");
		}
	}
Example #2
0
 public static void RemoveZone(FXZone zone)
 {
     zones.Remove(zone);
 }
Example #3
0
    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;
    }