- Timestamp:
- 2017-06-14 11:44:32 (6 years ago)
- Location:
- 2017/24/ViljamiM/Zombodroid/Zombodroid/Zombodroid
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
2017/24/ViljamiM/Zombodroid/Zombodroid/Zombodroid/Zombodroid.cs
r8625 r8635 27 27 YksVihu(); 28 28 29 AddCollisionHandler(matti, "nakoalue", VihuNakeeMatin);30 29 } 31 30 void AsetaOhjaimet() … … 114 113 satunnaisAivot.ChangeMovementSeconds = 3; 115 114 vihu.Brain = satunnaisAivot; 116 115 FollowerBrain suraajanAivot = new FollowerBrain(matti); 117 116 118 117 … … 126 125 nakokentta.CanRotate = false; 127 126 128 129 127 130 128 AddCollisionHandler(matti, nakokentta, delegate { VihuNakeeMatin(vihu); }); 129 130 131 131 Add(vihu); 132 132 Add(nakokentta); … … 134 134 nakokentta.IgnoresCollisionResponse = true; 135 135 } 136 void VihuNakeeMatin(PhysicsObject matti, PhysicsObject nakokentta)136 void VihuNakeeMatin(PhysicsObject vihu) 137 137 { 138 138 MessageDisplay.Add("vihunakeepelaajan"); 139 139 140 } 140 141
Note: See TracChangeset
for help on using the changeset viewer.