コード例 #1
0
 /// Makes sure the curve textures and control textures are in a consistent state.
 private void EnsureTexturesInited()
 {
     if (GrassTextures.Count == 0)
     {
         GrassTextures.Add(GetDefaultGrassTexture());
     }
 }
コード例 #2
0
 /// Destroy a texture from the list at the given position.
 public void RemoveGrassTexture(int index)
 {
     GrassTextures.RemoveAt(index);
 }
コード例 #3
0
 /// Adds new texture to the end of the list.
 public void AppendGrassTexture()
 {
     GrassTextures.Add(GetDefaultGrassTexture());
 }