Commit Graph

7 Commits

Author SHA1 Message Date
vova 374d75d379 Refactor treasure scriptable objects; update references and remove unused assets 2026-06-20 19:59:03 +03:00
vova a510443130 Implement movement input handling and update UI components for treasure collection 2026-06-20 19:11:24 +03:00
vova ad6388f330 Refactor player and enemy scripts; remove unused classes and improve initialization
- Added base initialization call in PlayerController.
- Changed player reference in EnemyAI to be serialized for better inspector visibility.
- Ensured characters are initialized upon spawning in EnemySpawner.
- Removed obsolete EnemyAI and Chest scripts to streamline codebase.
- Added KeyChest script for key collection functionality.
- Introduced new meta files for better organization and tracking.
- Created launch configuration for Unity debugging.
2026-06-20 18:39:30 +03:00
vova 39e4e51866 Add player controller, state management, and input handling
- Implemented PlayerController.cs to manage player movement and actions.
- Created PlayerState.cs to track player lives, coins, and key status.
- Added CameraFollow.cs for smooth camera movement following the player.
- Developed Character.cs as an abstract class for character behavior.
- Introduced Enums.cs for defining TreasureType and MapElementType.
- Added IDoor interface for door interactions.
- Created InputActions.cs for handling player input actions.
- Implemented MainMenu.cs for basic menu functionality including play and exit options.
2026-06-17 22:43:59 +03:00
vova a1420ed339 fix chest, breakable wall 2026-06-06 11:43:11 +03:00
vova 7579175d24 Refactor and reorganize scripts for improved structure and functionality
- Removed obsolete scripts: Chest, BreakableWall, Door, DoorInteract, and UiManager.
- Moved Chest and BreakableWall scripts to EnvironmentObjects folder.
- Introduced HammerThrower class to manage hammer throwing mechanics.
- Updated PlayerController to utilize new InputManager and HammerThrower.
- Refactored PlayerState to manage player state and item collection.
- Enhanced UI management in UiManager to reflect player item collection.
- Updated EnemyAI to remove unused movement logic.
- Adjusted KeyChest to interact with PlayerState instead of Player.
- Cleaned up code and improved event handling for item collection.
2026-06-05 14:33:20 +03:00
vova 39294ec527 Project structure, add docs update unity version 2026-06-05 12:19:36 +03:00