Skip to content

This is a collection of C# scripts for a small game using UnityEngine. It includes features such as NPC interaction, inventory management, scene transitions, camera movement, car spawning, and a "disco" effect. The scripts use data structures such as ScriptableObjects, LinkedLists, and Coroutines to implement their functions.

Notifications You must be signed in to change notification settings

KahlerYasla/guitar-life-unity3d

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

The system is a collection of scripts that work together to create a small game with multiple scenes and functionalities such as inventory management, NPC interaction, and scene transitions. The scripts are written in C# and use UnityEngine, a game engine developed by Unity Technologies.

  • SO_CharacterBody: Creates a ScriptableObject to manage character body parts with a name and reference to specific body part ScriptableObjects.
  • BuySellManager: Manages buying and selling in the market scene, tracks player money and inventory using a LinkedList, and performs actions based on indexes.
  • CameraFollow: Controls camera movement, following the player horizontally with an offset to maintain a specific view range.
  • CarManager: Handles car spawning, movement, and destruction, using a LinkedList to store instantiated cars and sorting based on player position.
  • DiscoMaker: Creates a "disco" effect by changing the color of a sprite renderer using InvokeRepeating and Random.value.
  • InventoryToggle: Controls the opening and closing of the inventory menu, detecting player input and adjusting the inventory menu's active state.
  • MarketSpeech: Manages player-NPC interaction in the market scene, activating speech bubbles and buttons based on collisions and controlling market inventory and trading modes.

Guitar-Life

0 1 2 3 4 5 6

About

This is a collection of C# scripts for a small game using UnityEngine. It includes features such as NPC interaction, inventory management, scene transitions, camera movement, car spawning, and a "disco" effect. The scripts use data structures such as ScriptableObjects, LinkedLists, and Coroutines to implement their functions.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published