예제 #1
0
    private void OnTriggerEnter(Collider other)
    {
        PortalTraveller travel = other.GetComponent <PortalTraveller>();

        if (travel == null)
        {
            return;
        }

        //entering the entrance portal
        travel.EnterPortal(this);
    }