コード例 #1
0
    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>();
    }
コード例 #2
0
    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));
        }
    }
コード例 #3
0
 public UnityEngine.Material GetUIColorMaterial()
 {
     return(FileAsset.GetMaterialOfSoundParticleByColorName(System.Enum.GetName(typeof(UIColors), _uiColor)));
 }
コード例 #4
0
 public void SetPlayerColor(PlayerTurnData.UIColors playerColor)
 {
     _PlayerColorIcon.color = FileAsset.GetMaterialOfSoundParticleByColorName(System.Enum.GetName(typeof(PlayerTurnData.UIColors), playerColor)).color;
 }
コード例 #5
0
 void ChangeFooterButtonColor(PlayerTurnData.UIColors playerColor)
 {
     clientFooterHelperButton.image.color = FileAsset.GetMaterialOfSoundParticleByColorName(System.Enum.GetName(typeof(PlayerTurnData.UIColors), playerColor)).color;
 }