Optimisation + cleanup comments

This commit is contained in:
Ader Alisma 01 2025-06-29 17:52:29 -04:00
parent d74647054a
commit abcc1de8c7
2 changed files with 1 additions and 4 deletions

View File

@ -52,8 +52,6 @@ public class AllyUpgrade : MonoBehaviour, IPointerClickHandler
if (upgradeEnfant.TryGetComponent<UpgradePlacementButton>(out UpgradePlacementButton button)) if (upgradeEnfant.TryGetComponent<UpgradePlacementButton>(out UpgradePlacementButton button))
{ {
button.Initialize(_upgradeList[i], gameObject, canvas); button.Initialize(_upgradeList[i], gameObject, canvas);
//button.GetComponent<Selectable>().Select();
//button.gameObject.AddComponent<DeselectedAction>().Init(_instance);
} }
} }
} }

View File

@ -28,8 +28,7 @@ public class DeselectManager : SingletonBehaviour<DeselectManager>
return; return;
} }
} }
Destroy(_allyUpgrade); SetAllyUpgrade(null);
_allyUpgrade = null;
} }
} }