コード例 #1
0
        void CloseWindow()
        {
            Map temp = mapInfoHolder.GetMapInfo();

            title.text  = temp.title;
            artist.text = temp.artist;
            BPM.text    = temp.bpm.ToString();
            path.text   = temp.songPath;

            system.SetEvent(Event.Main);
            Destroy(gameObject);
        }
コード例 #2
0
        void Start()
        {
            mapInfoHolder = GameObject.Find("MapInfo").GetComponent <MapInfoHolder>();
            system        = GameObject.Find("InputHandler").GetComponent <InputHandler>();

            Map temp = mapInfoHolder.GetMapInfo();

            title.text  = temp.title;
            artist.text = temp.artist;
            BPM.text    = temp.bpm.ToString();
            path.text   = temp.songPath;

            gameObject.SetActive(true);

            buttonOK.onClick.AddListener(EditMapInfo);
            buttonCancel.onClick.AddListener(CloseWindow);
        }
コード例 #3
0
        void Save()
        {
            if (fileName.text.Length == 0)
            {
                return;
            }
            string file = fileName.text;

            Map temp = info.GetMapInfo();

            temp.timings = judgements.GetAllJudgements();

            // change boolean based on final needs
            // probably use try catch later
            SaveLoad.SaveMap(temp, file, false);

            system.SetEvent(Event.Main);
            Destroy(this.gameObject);
        }