bugfix/HideUpgradesOnDeselect #9
@ -52,8 +52,6 @@ public class AllyUpgrade : MonoBehaviour, IPointerClickHandler
|
||||
if (upgradeEnfant.TryGetComponent<UpgradePlacementButton>(out UpgradePlacementButton button))
|
||||
{
|
||||
button.Initialize(_upgradeList[i], gameObject, canvas);
|
||||
//button.GetComponent<Selectable>().Select();
|
||||
//button.gameObject.AddComponent<DeselectedAction>().Init(_instance);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@ -28,8 +28,7 @@ public class DeselectManager : SingletonBehaviour<DeselectManager>
|
||||
return;
|
||||
}
|
||||
}
|
||||
Destroy(_allyUpgrade);
|
||||
_allyUpgrade = null;
|
||||
SetAllyUpgrade(null);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user