private static EffectIdentifierResponse SetEffect(ChromaApi api, string effectId) { if (api == null) { Debug.LogError("SetEffect: Parameter api is null!"); return(null); } if (string.IsNullOrEmpty(effectId)) { Debug.LogError("SetEffect: Parameter effectId cannot be null or empty!"); return(null); } EffectIdentifierInput data = new EffectIdentifierInput(effectId, null); try { return(api.PutEffect(data)); } catch (Exception) { } return(null); }