ChrisNZL / Tallowmere2

Changelog, issue tracker, and development knowledge for Tallowmere 2.
https://tallowmere2.com
13 stars 0 forks source link

Menus: Ensure null refs regarding T2.RectTransformPair.PositionIsInside have been fixed #1224

Closed ChrisNZL closed 8 months ago

ChrisNZL commented 9 months ago

Reported in 0.4.0d a lot. Mobile, with new players that are not yet Core Supporters.

Two stack traces that seem to be the culprit.

Believe this is a regression from a recent Canvas refactor, where CanvasMenu panels have their Canvas elements disabled, but not their related MonoBehaviours, resulting in Update methods calling too often.

todo:

1:

T2.RectTransformPair.PositionIsInside (UnityEngine.Vector2 position)
T2.RectTransformPair.get_IsClickedOrTapped ()
T2.IAPBlueDot.get_IsClickedOrTapped ()
T2.Player.Update ()

GameStates: RompingThroughDungeon, PlayerViewingCreatureInventory

2:

T2.RectTransformPair.PositionIsInside (UnityEngine.Vector2 position)
T2.RectTransformPair.get_IsClickedOrTapped ()
T2.Player.Update ()

GameStates: RompingThroughDungeon, UsingGameModePortalMenu
ChrisNZL commented 8 months ago

0.4.1: