1
Fork 0
mirror of https://github.com/thegeneralist01/Scene-Manager-DevRepo synced 2026-01-11 15:40:29 +01:00

Removed GetPaths() method from PathMainMenu and updated references to paths list.

This commit is contained in:
Rich Dunne 2020-09-15 13:49:10 -06:00
parent 3c636c1564
commit 2241e107de
6 changed files with 42 additions and 41 deletions

View file

@ -32,7 +32,7 @@ namespace SceneManager
private static void EditPath_OnItemSelected(UIMenu sender, UIMenuItem selectedItem, int index)
{
var currentPath = PathMainMenu.GetPaths()[PathMainMenu.editPath.Index];
var currentPath = PathMainMenu.paths[PathMainMenu.editPath.Index];
if (selectedItem == editPathWaypoints)
{
@ -49,7 +49,7 @@ namespace SceneManager
{
if (checkboxItem == disablePath)
{
var currentPath = PathMainMenu.GetPaths()[PathMainMenu.editPath.Index];
var currentPath = PathMainMenu.paths[PathMainMenu.editPath.Index];
if (disablePath.Checked)
{
currentPath.DisablePath();