Exemplo n.º 1
0
    void Start()
    {
        position    = art.localPosition;
        enableClick = false;
        touched     = false;
        twoFingers  = false;

        temporary = GameObject.Find("SongSelectManager").GetComponent <SongSelectManager>();
    }
Exemplo n.º 2
0
    void Start()
    {
        if (text.Length != 2)
        {
            throw new InvalidArraySizeException();
        }
        mainPosition   = text[0].localPosition;
        choicePosition = text[1].localPosition;

        temporary = GameObject.Find("SongSelectManager").GetComponent <SongSelectManager>();

        GetComponent <UnityEngine.UI.Button>().onClick.AddListener(SelectDifficulty);
    }
Exemplo n.º 3
0
    void Start()
    {
        active     = 0;
        animate    = false;
        time       = 0f;
        songSelect = true;

        temporary = GameObject.Find("SongSelectManager").GetComponent <SongSelectManager>();

        audioManager.LoadMap(json[active]);

        songSelectBack.onClick.AddListener(BackToMainMenu);
        difficultyBack.onClick.AddListener(BackToSongSelect);

        difficultyScreen.anchoredPosition = new Vector2(difficultyScreen.anchoredPosition.x, difficultyScreen.anchoredPosition.y + 10f);
    }
Exemplo n.º 4
0
    void Start()
    {
        try
        {
            temporary = GameObject.Find("SongSelectManager").GetComponent <SongSelectManager>();
        }
        catch
        {
            throw new EmptyPathException();
        }

        if (temporary.GetMapID() == -1)
        {
            throw new EmptyPathException();
        }

        // Debug.Log(temporary.GetMapID());
        manager.SetPath(paths[temporary.GetMapID()]);
        manager.SetDifficulty(temporary.GetDiffID());
        manager.StartGame();
        // temporary.DestroyObject();
        temporary = null;
    }