Ignore:
Timestamp:
2014-07-03 14:30:28 (6 years ago)
Author:
mijoilmo
Message:
 
File:
1 edited

Legend:

Unmodified
Added
Removed
  • 2014/27/AleksanteriV/Protokolla236TrueSurvivor/Protokolla236TrueSurvivor/Protokolla236TrueSurvivor/Player.cs

    r5343 r5359  
    1111    GameObject thrusterEffect; 
    1212    Proto236b parent; 
     13    private List<Weapon> weapons = new List<Weapon>(); 
    1314 
    1415    public void rotate(double rotSpeed) 
     
    5455    public void shoot() 
    5556    { 
    56  
     57        foreach (Weapon weapon in weapons) 
     58        { 
     59            weapon.Shoot(); 
     60        } 
     61    } 
     62    public void attachWeapon() 
     63    { 
     64        Weapon weapon = new AssaultRifle(1, 1); 
     65        weapon.Angle += Angle.RightAngle; 
     66        Add(weapon); 
     67        weapons.Add(weapon); 
    5768    } 
    5869    public override void Update(Time time) 
     
    7384            //player pystyy lähteä pois planeetalta kun menee tarpeeksi ylös 
    7485            //TODO: vaihda leveli spaceksi 
    75             if (false) { } 
    7686        } 
    7787    } 
Note: See TracChangeset for help on using the changeset viewer.