示例#1
0
 protected override void OnLayerUpdated()
 {
     if (Count == 30)
     {
         Owner.AddObject(new TextureObject2D()
         {
             Texture  = Engine.Graphics.CreateTexture2D(CloudTexturePath),
             Position = new Random().Next() % 8 * new Vector2DF(30, 30)
         });
     }
 }