private void CreateCharacter(char character)
    {
        CharacterQuickJump characterQuickJump = Instantiate(characterQuickJumpPrefab, transform);

        characterQuickJump.character = character.ToString();
        injector.Inject(characterQuickJump);

        SongMeta match = songSelectSceneController.GetCharacterQuickJumpSongMeta(character);

        if (match == null)
        {
            characterQuickJump.Interactable = false;
        }
    }
Exemple #2
0
    public bool TrySelectNextControl()
    {
        if ((eventSystem.currentSelectedGameObject == null ||
             eventSystem.currentSelectedGameObject.GetComponentInParent <CharacterQuickJump>() == null) &&
            InteractableCharacterQuickJumpEntries.Count > 0)
        {
            InteractableCharacterQuickJumpEntries.First().UiButton.Select();
            GetComponent <RectTransformSlideIntoViewport>().SlideIn();
            return(true);
        }

        CharacterQuickJump nextEntry = InteractableCharacterQuickJumpEntries.GetElementAfter(FocusedInteractableCharacterQuickJumpEntry, false);

        if (nextEntry != null)
        {
            nextEntry.UiButton.Select();
            return(true);
        }

        return(false);
    }