Exemplo n.º 1
0
 private void OnValidate()
 {
     if (Application.isPlaying && this.Water != null && this.Water.WindWaves != null)
     {
         this.Water.ProfilesManager.SetProfiles(WaterProfileBlend.CreateProfiles(this._Profiles, this._Weights));
     }
     if (WaterProfileBlend.WeightSum(this._Weights) == 0f)
     {
         this._Weights[0] = 1f;
     }
 }
Exemplo n.º 2
0
 private void Start()
 {
     this.Water.ProfilesManager.SetProfiles(WaterProfileBlend.CreateProfiles(this._Profiles, this._Weights));
 }