public void Activate(Vector3 playerPos) { if (!active) { thisObj.SetActive(true); gameCamera.ZoomOutToMap(); gameCamera.Locked = false; back.onClick.AddListener(delegate() { Deactivate(playerPos); turnOptions.Activate(); }); active = true; } }
public void DisplayChoices(int roll) { List <List <Space> > paths = MapUtil.FindPaths(roll, app.ActivePlayer); pathOptions = new SortedDictionary <string, List <Space> >(); List <Vector3> toHighlight = new List <Vector3>(); Vector3 pos; foreach (List <Space> path in paths) { pos = path[path.Count - 1].position; toHighlight.Add(pos); pathOptions.Add(pos.x + "_" + pos.z, path); } spaceVisuals.HighlightSpaces(toHighlight); gameCamera.ZoomOutToMap(); gameCamera.Locked = false; choosingSpace = true; }