Skip to content

Conversation

@Kennedy793
Copy link

Overview

This pull request adds two new C# scripts that implement the core logic for the
Totem Selection System. These scripts are responsible for spawning the totem
selection buttons at runtime and handling user interactions when a totem is chosen.

These files are foundational parts of the feature and will be referenced by the UI
prefab and scene setup, which will be committed separately.( via another task in the planner )


Added Files

  • Assets/Scripts/UI/TotemTokenManager.cs

    • Spawns 8 totem buttons at game start
    • Assigns sprites and handles player selection
    • Tracks the currently selected totem
  • Assets/Scripts/UI/TotemTokenButton.cs

    • Handles individual button behavior
    • Controls highlight state when selected
    • Receives callbacks from the manager

Notes

  • This PR includes only the code files.

…the core logic for the Totem Selection System. These scripts are responsible for spawning the totem selection buttons at runtime and handling user interactions when a totem is chosen. These files are foundational parts of the feature and will be referenced by the UI prefab and scene setup, which will be committed separately. --- ## Added Files - Assets/Scripts/UI/TotemTokenManager.cs - Spawns 8 totem buttons at game start - Assigns sprites and handles player selection - Tracks the currently selected totem - Assets/Scripts/UI/TotemTokenButton.cs - Handles individual button behavior - Controls highlight state when selected - Receives callbacks from the manager

## Overview
This pull request adds two new C# scripts that implement the core logic for the
Totem Selection System. These scripts are responsible for spawning the totem
selection buttons at runtime and handling user interactions when a totem is chosen.

These files are foundational parts of the feature and will be referenced by the UI
prefab and scene setup, which will be committed separately.

---

## Added Files
- Assets/Scripts/UI/TotemTokenManager.cs
  - Spawns 8 totem buttons at game start
  - Assigns sprites and handles player selection
  - Tracks the currently selected totem

- Assets/Scripts/UI/TotemTokenButton.cs
  - Handles individual button behavior
  - Controls highlight state when selected
  - Receives callbacks from the manager
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants