Galaxy View Collider Hotfix

THERE, clicking on sectors should be better now
This commit is contained in:
hyperion51 2020-05-30 02:44:22 +01:00
commit 68473a84ab
3 changed files with 46 additions and 52 deletions

View file

@ -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);