public void SetWater(float clearness, WAVETYPE_COLOR coltype, float wavePower, WAVETYPE waveTall) { //透明度のセット SetClearness(clearness); //水の色の設定 SetWaterColor(coltype); //波の高さの設定 SetWaveTall(waveTall); }
void SetWaterColor(WAVETYPE_COLOR coltype) { gameObject.GetComponent <Renderer>().material.SetColor(Shaderparams[0], col[(int)coltype]); }