Example #1
0
    public void SetWater(float clearness, WAVETYPE_COLOR coltype, float wavePower, WAVETYPE waveTall)
    {
        //透明度のセット
        SetClearness(clearness);

        //水の色の設定
        SetWaterColor(coltype);

        //波の高さの設定
        SetWaveTall(waveTall);
    }
Example #2
0
 void SetWaterColor(WAVETYPE_COLOR coltype)
 {
     gameObject.GetComponent <Renderer>().material.SetColor(Shaderparams[0], col[(int)coltype]);
 }