コード例 #1
0
ファイル: PlayerController.cs プロジェクト: mcKalle/Elegun
        private void PickUpMunition(GameObject munitionGameObject)
        {
            // add the element, that was picked up to the "inventory"
            Munition munition = munitionGameObject.GetComponent <Munition>();

            _inventory.AddToInventory(munition);

            Destroy(munitionGameObject);
        }