Bug: Coroutine Error: 'Spell Button 02' Inactive When Starting Spell
Bug #2
Coroutine Error: 'Spell Button 02' Inactive When Starting Spell
| Status: | New |
| Priority: |
High |
| Added by: |
|
| Assigned to: |
Unassigned
|
| Due date: | |
| Reported for: |
V0.681
Auto
|
Steps to Reproduce
No steps to reproduce
Explanation
SpellButtonScript is experiencing an issue where a coroutine cannot be started because the game object 'Spell Button 02' is inactive. This occurs when attempting to lower land, resulting in the error: 'Coroutine couldn't be started because the the game object 'Spell Button 02' is inactive!'. The stack trace indicates the error originates from UnityEngine.MonoBehaviour:StartCoroutineManaged2 (System.Collections.IEnumerator) and propagates through various methods including SpellButtonScript:TriggerCooldownEffect (), SpellButtonScript:StartCooldownDisplay (single), and UIBuildingSpellController:UpdateSpellButtonsDirectly (System.Collections.Generic.List1<SpellClass>,Tile,System.Collections.Generic.List1<SpellButtonScript>,SpellManager).
game spits out this error whenever I try to lower land (theres two of them, on for spell button 01 and one for 02
Coroutine couldn't be started because the the game object 'Spell Button 02' is inactive!
UnityEngine.Debug:ExtractStackTraceNoAlloc (byte*,int,string)
UnityEngine.StackTraceUtility:ExtractStackTrace ()
UnityEngine.MonoBehaviour:StartCoroutineManaged2 (System.Collections.IEnumerator)
UnityEngine.MonoBehaviour:StartCoroutine (System.Collections.IEnumerator)
SpellButtonScript:TriggerCooldownEffect ()
SpellButtonScript:StartCooldownDisplay (single)
SpellButtonScript:UpdateCooldownState ()
SpellButtonScript:SetButton (UnityEngine.Sprite,string,int,int,int,int,bool,bool)
UIBuildingSpellController:UpdateSpellButtonsDirectly (System.Collections.Generic.List`1,Tile,System.Collections.Generic.List`1,SpellManager)
UIBuildingSpellController:SetAvailableSpellButtons (System.Collections.Generic.List`1,Tile,System.Collections.Generic.List`1,SpellManager,UnityEngine.GameObject)
UIBuildingSpellController:UpdateBuildContextInternal (Tile,GameManager,BuildingManager,SpellManager,System.Collections.Generic.List`1,System.Collections.Generic.List`1,UnityEngine.GameObject)
UIManager:UpdateBuildContext (Tile)
BuildingManager:UpdateBuildContext (Tile)
Tile:OnTileClicked ()
GameManager:HandleTileClick ()
GameManager:Update ()
Watchers
Linked Bugs (1)
Bug Occurrence
Screenshots
None
Video Clips
None
Log Files
None
Device
No device information