void Start() { position = art.localPosition; enableClick = false; touched = false; twoFingers = false; temporary = GameObject.Find("SongSelectManager").GetComponent <SongSelectManager>(); }
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); }
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); }
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; }