Changeset 8160 for 2016


Ignore:
Timestamp:
2016-07-27 14:11:35 (3 years ago)
Author:
almajono
Message:
 
Location:
2016/30/AleksiN/name/name/name
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • 2016/30/AleksiN/name/name/name/name.cs

    r8155 r8160  
    3030        Wind = new Vector(-25, 0); 
    3131        Smoke smoke = new Smoke(); 
    32         smoke.Position = bike.Position; 
     32         
     33        Timer savu = new Timer(); 
     34        savu.Interval = 0.1; 
     35        savu.Timeout += delegate 
     36        { 
     37            SiirraSavua(smoke); 
     38        }; 
     39        savu.Start(); 
    3340        Add(smoke); 
    3441 
     
    8390    } 
    8491 
     92    void SiirraSavua(Smoke smoke) 
     93    { 
     94    smoke.Position = bike.Position; 
     95    } 
     96 
    8597} 
Note: See TracChangeset for help on using the changeset viewer.