Fix variable name collision 'allT' in PageController
This commit is contained in:
@@ -466,8 +466,8 @@ public class PageController : MonoBehaviour
|
||||
var tipPanel = GameObject.Find("TipPanel");
|
||||
if (tipPanel == null)
|
||||
{
|
||||
var allT = Resources.FindObjectsOfTypeAll<Transform>();
|
||||
foreach(var t in allT) { if (t.name == "TipPanel") { tipPanel = t.gameObject; break; } }
|
||||
var allTips = Resources.FindObjectsOfTypeAll<Transform>();
|
||||
foreach(var t in allTips) { if (t.name == "TipPanel") { tipPanel = t.gameObject; break; } }
|
||||
}
|
||||
if (tipPanel != null) tipPanel.SetActive(true);
|
||||
// ---------------------------------------------------------------------
|
||||
|
||||
Reference in New Issue
Block a user