コード例 #1
0
    private void OnTriggerStay(Collider other)
    {
        PortalTraveller travel = other.GetComponent <PortalTraveller>();

        if (travel == null)
        {
            return;
        }

        travel.AttemptTeleport();
    }