void Awake() { bottomLimit = -threshold; topLimit = threshold; colorEffect = this.GetComponent <TimedColorEffect>(); colorEffect.AddMaterial(FileAsset.GetMaterialOfSoundParticleByColorName("Orange")); colorEffect.AddMaterial(FileAsset.GetMaterialOfSoundParticleByColorName("Cyan")); colorEffect.AddMaterial(FileAsset.GetMaterialOfSoundParticleByColorName("Purple")); pSystem = this.GetComponent <ParticleSystem>(); }
IEnumerator RotateThroughColors() { while (true) { if (materials == null || materials.Count == 0) { ChangeParticleSystemMaterial(FileAsset.GetMaterialOfSoundParticleByColorName("White")); } else { currentMaterial = (currentMaterial + 1) % materials.Count; ChangeParticleSystemMaterial(materials[currentMaterial]); } yield return(new WaitForSecondsRealtime(interval)); } }
public UnityEngine.Material GetUIColorMaterial() { return(FileAsset.GetMaterialOfSoundParticleByColorName(System.Enum.GetName(typeof(UIColors), _uiColor))); }
public void SetPlayerColor(PlayerTurnData.UIColors playerColor) { _PlayerColorIcon.color = FileAsset.GetMaterialOfSoundParticleByColorName(System.Enum.GetName(typeof(PlayerTurnData.UIColors), playerColor)).color; }
void ChangeFooterButtonColor(PlayerTurnData.UIColors playerColor) { clientFooterHelperButton.image.color = FileAsset.GetMaterialOfSoundParticleByColorName(System.Enum.GetName(typeof(PlayerTurnData.UIColors), playerColor)).color; }