I should hit this line of code I'm sure; it's in the SoundContentObject. I'm thinking the way I am doing it is very expensive, but I am surprised that I never see a tower
these lines:
if (contactConstraint.BodyA.GetType() == typeof(RigidBody))
{
TowerContentObject tower;
MonsterContentObject monster;
string f = (contactConstraint.BodyA as RigidBody).Name;
string g = (contactConstraint.BodyB as RigidBody).Name;
// HELMUT I NEVER ARRIVE HERE
I should hit this line of code I'm sure; it's in the SoundContentObject. I'm thinking the way I am doing it is very expensive, but I am surprised that I never see a tower
these lines: if (contactConstraint.BodyA.GetType() == typeof(RigidBody)) { TowerContentObject tower; MonsterContentObject monster; string f = (contactConstraint.BodyA as RigidBody).Name; string g = (contactConstraint.BodyB as RigidBody).Name;
always yield:
Floor:TOWERGameObject10 Floor:TOWERGameObject10 Floor:TOWERGameObject10 Floor:TOWERGameObject10 Floor:TOWERGameObject10 Floor:TOWERGameObject10 Floor:TOWERGameObject10 Floor:TOWERGameObject10 Floor:TOWERGameObject10 Floor:TOWERGameObject10 Floor:TOWERGameObject10 Floor:TOWERGameObject10 Floor:TOWERGameObject10 Floor:TOWERGameObject10 Floor:TOWERGameObject10 Floor:TOWERGameObject10 Floor:TOWERGameObject10