Ejemplo n.º 1
0
 public void render_texture()
 {
     if (this.house == null)
     {
         this.house = new RealHouse(this.texture_file, this.location);
     }
     this.house.render_texture();
 }
Ejemplo n.º 2
0
 public void get_location()
 {
     // lazy initilization
     if (this.house == null)
     {
         this.house = new RealHouse(this.texture_file, this.location);
     }
     this.house.get_location();
 }