Ignore:
Timestamp:
2013-07-23 14:56:27 (6 years ago)
Author:
anlakane
Message:

Talletus.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • 2013/30/MiskaK/MW2(My Warfare 2)/MW2(My Warfare 2)/MW2(My Warfare 2)/Tuhoutuva.cs

    r4507 r4580  
    88using Jypeli.Effects; 
    99using Jypeli.Widgets; 
     10 
    1011 
    1112/// <summary> 
     
    2223 
    2324    public Tuhoutuva(double width, double height, int kesto) 
    24         : base(width, height) 
     25        : base(width, height, Shape.Rectangle) 
    2526    { 
    2627        this.kesto = new DoubleMeter(kesto); 
    2728        this.kesto.MinValue = 0; 
     29        IsUpdated = true; 
     30    } 
     31 
     32    public override void Update(Time time) 
     33    { 
     34        if (!MW2_My_Warfare_2_.Peli.OnkoNaytonAlueella(this.Position)) this.Body.IsCollidable = false; 
     35        else this.Body.IsCollidable = true; 
     36        base.Update(time); 
    2837    } 
    2938} 
Note: See TracChangeset for help on using the changeset viewer.