PickUpItem.Start C# (CSharp) Méthode

Start() public méthode

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