PickUpItem.Start C# (CSharp) Method

Start() public method

public Start ( ) : void
return void
    void Start()
    {
        _player = UnityEngine.GameObject.FindGameObjectWithTag("Player");
        if (_player != null)
            _inventory = _player.GetComponent<PlayerInventory>().inventory.GetComponent<Inventory>();
    }