public static void endCollisionWithPlayer(ChipmunkArbiter arbiter) { ChipmunkShape shape1, shape2; // The order of the arguments matches the order in the function name. arbiter.GetShapes(out shape1, out shape2); Chase chase = shape1.GetComponent <Chase>(); chase.stopChasing(); chase.target = null; chase.enableOperate(); }