Ignore:
Timestamp:
2016-07-07 16:09:08 (3 years ago)
Author:
sieerinn
Message:

Kyykkykuvat peliin asti

File:
1 edited

Legend:

Unmodified
Added
Removed
  • 2016/27/ohjaajat/VenienteFragore/VenienteFragore/VenienteFragore/Player.cs

    r7975 r7976  
    1010    class Player : SimplePlatformCharacter 
    1111    { 
     12        public Animation AnimWalk { get; set; } 
     13        public Animation AnimCrouch { get; set; } 
     14 
    1215        public bool IsCrouching { get; private set; } 
    1316 
     
    6467        { 
    6568            var dt = time.SinceLastUpdate.TotalSeconds; 
     69 
     70            // Animaatiosäätö. 
     71            Animation = IsCrouching ? AnimCrouch : AnimWalk; 
    6672 
    6773            // Pelaajan kiihdytys. 
Note: See TracChangeset for help on using the changeset viewer.