/// <summary> /// Happens when a phalange has collision with an cetrain object /// </summary> /// <param name="finger">The finger that is colliding</param> /// <param name="index">The index of this finger</param> /// <param name="collision">All of the collision data</param> private void PhalangeCollisionEntered(PhalangeData phalangeData, Collision collision, CollisionType type) { if (CollisionEntered != null) { CollisionEntered(phalangeData, collision, type); } }
private void HandCollisionEntered(PhalangeData data, Collision collision, CollisionType type) { if (OnHandCollision != null) { OnHandCollision(data, collision, type); } }