bugfix/HideUpgradesOnDeselect #9
@ -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);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@ -28,8 +28,7 @@ public class DeselectManager : SingletonBehaviour<DeselectManager>
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
Destroy(_allyUpgrade);
|
SetAllyUpgrade(null);
|
||||||
_allyUpgrade = null;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user