Example #1
0
    private void OnCollisionEnter2D(Collision2D col)
    {
        CollisionsManager.ResolveCollision(this.gameObject, col.gameObject, col);

        // For moving the player with the platform
        if (col.gameObject.CompareTag("Ground"))
        {
            transform.SetParent(col.gameObject.transform);
        }
    }
Example #2
0
 private void OnCollisionEnter2D(Collision2D col)
 {
     CollisionsManager.ResolveCollision(this.gameObject, col.gameObject, col);
 }
Example #3
0
    private void OnCollisionEnter2D(Collision2D col)
    {
        CollisionsManager.ResolveCollision(this.gameObject, col.gameObject, col);

        //Debug.Log("Player has collided with: " + col.collider.name);
    }