Exemplo n.º 1
0
        void Start()
        {
            // make sure this window is instantiated in Screen game object
            transform.SetParent(GameObject.Find("Screen").transform);
            transform.localPosition = Vector2.zero;

            system = GameObject.Find("InputHandler").GetComponent <InputHandler>();
            info   = GameObject.Find("MapInfo").GetComponent <MapInfoHolder>();
            // judgements = GameObject.Find("Judgements").GetComponent<EditorJudgementHolder>();

            load.onClick.AddListener(Load);
            cancel.onClick.AddListener(Cancel);
        }
Exemplo n.º 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);
        }