コード例 #1
0
    public void PickObject(PickableObject pickable)
    {
        if (_currentlyPickedObject != null)
        {
            _currentlyPickedObject.Lost();
        }

        _currentlyPickedObject = pickable;
        _currentlyPickedObject.PickedUp();
        _currentlyPickedObject.transform.SetParent(transform);
        _currentlyPickedObject.transform.position = _handTransform.position;
    }