void processCollision(InteractorType x, GeneralCollider gc) { if(a.ContainsKey(x)) { //logInteraction(a[x], gc.go); changeTarget.addChange(a [x]); return; } if(a.ContainsKey(InteractorType.DEFAULT)) { changeTarget.addChange(a [InteractorType.DEFAULT]); } }
void processCollisions(Composition c, GeneralCollider gc) { //logCollision(gc.go); if(c == null) { return; }; c.elements.ForEach(x => this.processCollision(x, gc)); }