Example #1
0
    public void OnTrigger(BaseEvent e)
    {
        //		scenarioScript = new List<string>() {
        //			"Oh Shit!",
        //			"The " + enemy.EnemyName + " suddenly blocks your way, what do you wanna do?"
        //
        //		};

        theEvent = e;
        uiCanvas = theEvent.UICanvas;

        NpcUI.text = enemy.EnemyName;
        // Lock player movement
        player.lockPlayer();

        //		battleLogTextUI.text = GetNextScriptAndAdvanceIndex();
        battleLog.AddNewElement(GetNextScriptAndAdvanceIndex());

        talkButton.onClick.AddListener(OnTalk);
        player.lockPlayer();

        showEnemyDescription.SetEnemy(enemy);
        //
        avatar.sprite = avt;

        inputmg.sindex = ScenarioIndex;

        player.Reset();
    }
Example #2
0
    public void OnTrigger(BaseEvent e)
    {
        theEvent = e;
        uiCanvas = theEvent.UICanvas;

        NpcUI.text = enemy.EnemyName;
        // Lock player movement
        player.lockPlayer();

        //		battleLogTextUI.text = GetNextScriptAndAdvanceIndex();
        battleLog.AddNewElement(GetNextScriptAndAdvanceIndex());

        talkButton.onClick.AddListener(OnTalk);

        showEnemyDescription.SetEnemy(enemy);
        avatar.sprite = avt;

        inputmg.sindex = ScenarioIndex;
    }