コード例 #1
0
    // Start is called before the first frame update
    void Start()
    {
        if (hand == null)
        {
            hand = GetComponent <Transform>();
        }
        if (otherHand == null)
        {
            Debug.LogError("otherHand is null in grab");
        }
        else
        {
            otherHandTransform = otherHand.GetComponent <Transform>();
        }

        colliderOverlap = new Collider[10];
    }