Exemplo n.º 1
0
 public void PlayHighLitEffect(Vector3 color)
 {
     if (this.CheckMats())
     {
         SMaterialEffect_HighLit lit = this.FindOrCreateEffect <SMaterialEffect_HighLit>(3);
         lit.color = color;
         lit.Play();
     }
 }
Exemplo n.º 2
0
    public int PlayHighLitEffect(Vector3 color)
    {
        if (!this.CheckMats())
        {
            return(0);
        }
        this.m_effectCounter[3]++;
        SMaterialEffect_HighLit sMaterialEffect_HighLit = this.FindOrCreateEffect <SMaterialEffect_HighLit>(3);

        sMaterialEffect_HighLit.color = color;
        sMaterialEffect_HighLit.Play();
        MaterialHurtEffect.HighLitColor highLitColor = default(MaterialHurtEffect.HighLitColor);
        highLitColor.id    = ++this.hlcIndex;
        highLitColor.color = color;
        this.hlcList.Add(highLitColor);
        return(highLitColor.id);
    }