Пример #1
0
    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]);
        }
    }
Пример #2
0
 void processCollisions(Composition c, GeneralCollider gc)
 {
     //logCollision(gc.go);
     if(c == null) { return; };
     c.elements.ForEach(x => this.processCollision(x, gc));
 }