Changeset 8635 for 2017/24


Ignore:
Timestamp:
2017-06-14 11:44:32 (2 years ago)
Author:
npo17_18
Message:
 
Location:
2017/24/ViljamiM/Zombodroid/Zombodroid/Zombodroid
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • 2017/24/ViljamiM/Zombodroid/Zombodroid/Zombodroid/Zombodroid.cs

    r8625 r8635  
    2727        YksVihu(); 
    2828 
    29         AddCollisionHandler(matti, "nakoalue", VihuNakeeMatin); 
    3029    } 
    3130    void AsetaOhjaimet() 
     
    114113        satunnaisAivot.ChangeMovementSeconds = 3; 
    115114        vihu.Brain = satunnaisAivot; 
    116          
     115        FollowerBrain suraajanAivot = new FollowerBrain(matti); 
    117116         
    118117 
     
    126125        nakokentta.CanRotate = false; 
    127126 
    128          
    129127 
    130          
     128        AddCollisionHandler(matti, nakokentta, delegate { VihuNakeeMatin(vihu); }); 
     129 
     130 
    131131        Add(vihu); 
    132132        Add(nakokentta); 
     
    134134        nakokentta.IgnoresCollisionResponse = true; 
    135135    } 
    136     void VihuNakeeMatin(PhysicsObject matti, PhysicsObject nakokentta) 
     136    void VihuNakeeMatin(PhysicsObject vihu) 
    137137    { 
    138138        MessageDisplay.Add("vihunakeepelaajan"); 
     139 
    139140    } 
    140141 
Note: See TracChangeset for help on using the changeset viewer.