Esempio n. 1
0
 private void OnDotPressed(MelodyDot dot)
 {
     selectedDot = dot;
     Debug.Log("Dot Pressed: " + dot.name);
     FretEnterPanel.SetActive(true);
     EventSystem.current.SetSelectedGameObject(FretInput.gameObject, null);
 }
Esempio n. 2
0
    private void SetFretButtonPressed()
    {
        int  fretNum  = -1;
        bool didParse = int.TryParse(FretInput.text, out fretNum);

        if (didParse)
        {
            selectedDot.SetActive(true, fretNum);
            selectedDot = null;
            FretEnterPanel.SetActive(false);
        }
    }
Esempio n. 3
0
 private void OnDotDeleted(MelodyDot dot)
 {
     Debug.Log("Dot Deleted: " + dot.name);
     dot.SetActive(false);
 }
Esempio n. 4
0
 private void CancelFretButtonPressed()
 {
     selectedDot = null;
     FretEnterPanel.SetActive(false);
 }