Ejemplo n.º 1
0
    private void OnTriggerEnter(Collider other)
    {
        //Debug.Log("Collided with: " + other.transform.name);
        controller.AllowJumping();

        if (other.gameObject.CompareTag("Platform"))
        {
            AttachPlayerToObject(other.transform);
        }
        else
        {
            DeattachPlayerFromObject();
        }
    }