Galaxy View Collider Hotfix
THERE, clicking on sectors should be better now
This commit is contained in:
parent
d78ad49762
commit
68473a84ab
3 changed files with 46 additions and 52 deletions
|
|
@ -756,7 +756,7 @@ public class StrategyGameManager : MonoBehaviour
|
|||
var instanceZone = instance.GetComponent<GalaxyZone>();
|
||||
_galaxyZoneObjects[zone.ZoneID] = instanceZone;
|
||||
instanceZone.Label.text = zone.Name;
|
||||
instanceZone.Background.GetComponent<ClickableCollider>().OnClick += (_, pointer) =>
|
||||
instanceZone.Icon.GetComponent<ClickableCollider>().OnClick += (_, pointer) =>
|
||||
{
|
||||
if (_selectedGalaxyZone != null)
|
||||
_selectedGalaxyZone.Background.material.SetColor("_TintColor", UnselectedColor);
|
||||
|
|
|
|||
Loading…
Reference in a new issue