Ejemplo n.º 1
0
    /// <summary>
    /// Called on click of 'Confirm' button
    /// </summary>
    public void OnConfirmClick()
    {
//		if (currentTopic == Topic.ADD) {
        bool flag = gameObject.GetComponentInChildren <LevelSelector> ().isSceneLocked(currentTopic, scroll.GetSceneIndex());

        Debug.Log("Locked " + flag);
//			if (!flag) { // TODO
        FindObjectOfType <LoadingScreen> ().LoadScene(scroll.GetCurrentScene(), false);
//			}
    }