예제 #1
0
        void buttonClicked()
        {
            Dungeon newDungeon = new Dungeon();

            newDungeon.Name     = Name.text;
            newDungeon.Lat      = double.Parse(Lat);
            newDungeon.Lon      = double.Parse(Lon);
            newDungeon.Rating   = int.Parse(Rating.options[Rating.value].text);
            newDungeon.Favorite = Favorite.isOn;

            mapController.AddDungeon(newDungeon);

            DungeonListControllerObject.AddButton(newDungeon);

            //MapboxAccess.Instance.SetLocationCollectionState(_booleanValue);
            //PlayerPrefs.Save();
        }