Unity 2024 Beginner Tutorial: Drop Weapons & Items in Your Game

Поделиться
HTML-код
  • Опубликовано: 16 сен 2024
  • Learn how to drop weapons and items in your Unity 2024 game with this beginner tutorial! We'll guide you through creating a script that allows players to drop and pick up items using the 'Q' key. Master key concepts like deleting elements from arrays, working with temporary arrays, creating and cloning prefabs, and implementing if statements. Perfect for beginners looking to enhance their Unity game development skills. Watch now and take your game to the next level!
    Support the channel, Download the projects, scripts and more on Patreon: / solodevtom

Комментарии • 1

  • @SoloDevTom
    @SoloDevTom  13 дней назад

    Code at 20:05 (I accidentally cut the "selectedWeapon = 0;" code part out of the video):
    if(equipedWeapons.Length > 0)
    {
    selectedWeapon = 1;
    switchWeapons();
    }
    else
    {
    selectedWeapon = 0;
    }