private void Start()
    {
        SetDialogue(DatingSimHelper.getSelectedCharacter().getLocalizedIntroDialogue());
        OnFontLocalized();

        textPlayer.enabled = false;
        Invoke("EnableTextPlayer", introTextDelay);
    }
Beispiel #2
0
    void Start()
    {
        textComp         = GetComponent <TMP_Text>();
        textPlayer       = GetComponent <AdvancingText>();
        defaultTextSpeed = textPlayer.getAdvanceSpeed();

        SetDialogue(DatingSimHelper.getSelectedCharacter().getLocalizedIntroDialogue());

        textPlayer.enabled = false;
        Invoke("EnableTextPlayer", introTextDelay);
    }
Beispiel #3
0
    void Start()
    {
        textComp         = GetComponent <TMP_Text>();
        textPlayer       = GetComponent <AdvancingText>();
        defaultTextSpeed = textPlayer.getAdvanceSpeed();

        SetDialogue(DatingSimHelper.getSelectedCharacter().getLocalizedIntroDialogue());

        if (introTextForceCompletionTime > 0f)
        {
            float newSpeed = textPlayer.getTotalVisibleChars() / introTextForceCompletionTime;
            textPlayer.setAdvanceSpeed(newSpeed);
        }

        textPlayer.enabled = false;
        Invoke("EnableTextPlayer", introTextDelay);
    }
    public void initialize(DatingSimCharacters.CharacterOption option)
    {
        right = DatingSimHelper.getOptionIsRight(option);
        index = DatingSimHelper.getOptionIndex(option, right);

        DatingSimHelper.getSelectedCharacter();

        if (textComp == null)
        {
            textComp = GetComponentInChildren <TMP_Text>();
        }
        if (cursor == null)
        {
            cursor = GetComponentInChildren <DatingSimCursorAnimation>();
            cursor.gameObject.SetActive(false);
        }
        SetText(DatingSimHelper.getSelectedCharacter().getLocalizedOptionDialogue(right, index, false));

        ShowCursor(false);
    }
    public void ShowOptions()
    {
        currentOption = 0;

        var optionPool = new List <DatingSimCharacters.CharacterOption>(DatingSimHelper.getSelectedCharacter().rightOptions);

        optionPool.Shuffle();
        for (int i = 0; i < totalWinLines; i++)
        {
            lines.Add(createLine(optionPool[i]));
        }

        optionPool = new List <DatingSimCharacters.CharacterOption>(DatingSimHelper.getSelectedCharacter().wrongOptions);
        optionPool.Shuffle();
        for (int i = 0; i < totalLoseLines; i++)
        {
            lines.Add(createLine(optionPool[i]));
        }

        lines.Shuffle();
        positionLines();
        lines[0].ShowCursor(true);
        enableUserControl = true;
    }
Beispiel #6
0
 // Use this for initialization
 void Start()
 {
     sr        = GetComponent <SpriteRenderer>();
     sr.sprite = DatingSimHelper.getSelectedCharacter().backgroundImage;
 }
 void Start()
 {
     sr        = GetComponent <SpriteRenderer>();
     sr.sprite = DatingSimHelper.getSelectedCharacter().defaultPortait;
 }
    void onResult(bool victory)
    {
        var character = DatingSimHelper.getSelectedCharacter();

        sr.sprite = victory ? character.winPortrait : character.lossPortrait;
    }
 public string getLocalizedResponse()
 {
     return(DatingSimHelper.getSelectedCharacter().getLocalizedOptionDialogue(right, index, true));
 }
Beispiel #10
0
 void Start()
 {
     GetComponent <Renderer>().material = DatingSimHelper.getSelectedCharacter().optionBGMaterial;
 }
 void Start()
 {
     textComp = GetComponent <TMP_Text>();
     textComp.SetText(DatingSimHelper.getSelectedCharacter().getLocalizedDisplayName());
 }