Exemple #1
0
    void Start()
    {
        //		battleLogTextUI = GameObject.FindGameObjectWithTag(Tags.BATTLE_LOG_TEXT_UI).GetComponent<Text>();
        battleLog            = GameObject.FindGameObjectWithTag(Tags.DYNAMIC_BATTLE_LOG).GetComponent <DynamicScrollView>();
        talkButton           = GameObject.FindGameObjectWithTag(Tags.TALK_BUTTON).GetComponent <Button>();
        player               = GameObject.FindGameObjectWithTag(Tags.PLAYER).GetComponent <player> ();
        playerinput          = GameObject.FindGameObjectWithTag(Tags.PLAYER_INPUT_FIELD).GetComponent <InputField> ();
        playerinput.enabled  = false;
        showEnemyDescription = GameObject.FindGameObjectWithTag(Tags.ENEMY_DESCRIPTION_UI).GetComponent <ShowEnemyDescription>();

        NpcUI   = GameObject.FindGameObjectWithTag(Tags.NPC_NAME).GetComponent <Text> ();
        inputmg = GameObject.Find("InputManager").GetComponent <InputManager> ();

        avatar = GameObject.FindGameObjectWithTag(Tags.ENEMY_AVATAR).GetComponent <Image> ();
        //Initialize Enemy
        //		enemy = GameObject.Find("EnemyManager").GetComponent<enemyExample>();

        //		Debug.Log("Enemy Name INIT: " + enemy.EnemyName);

        scenarioScript = new List <string>()
        {
            " It's time! ",
            " You have to finally face the Evil President!",
            " The Evil President is 336 years old.",
            " And he has ONE famous Momento: ",
            " Respect me! I am OLD! ",
            " Now, Time to fight. "
        };
    }
Exemple #2
0
    void Start()
    {
        //		battleLogTextUI = GameObject.FindGameObjectWithTag(Tags.BATTLE_LOG_TEXT_UI).GetComponent<Text>();
        battleLog            = GameObject.FindGameObjectWithTag(Tags.DYNAMIC_BATTLE_LOG).GetComponent <DynamicScrollView>();
        talkButton           = GameObject.FindGameObjectWithTag(Tags.TALK_BUTTON).GetComponent <Button>();
        player               = GameObject.FindGameObjectWithTag(Tags.PLAYER).GetComponent <player> ();
        playerinput          = GameObject.FindGameObjectWithTag(Tags.PLAYER_INPUT_FIELD).GetComponent <InputField> ();
        playerinput.enabled  = false;
        showEnemyDescription = GameObject.FindGameObjectWithTag(Tags.ENEMY_DESCRIPTION_UI).GetComponent <ShowEnemyDescription>();
        inputmg              = GameObject.Find("InputManager").GetComponent <InputManager> ();

        Debug.Log(playerinput.onEndEdit.GetPersistentTarget(2).ToString());

        NpcUI  = GameObject.FindGameObjectWithTag(Tags.NPC_NAME).GetComponent <Text> ();
        avatar = GameObject.FindGameObjectWithTag(Tags.ENEMY_AVATAR).GetComponent <Image> ();
        //Initialize Enemy
        //		enemy = GameObject.Find("EnemyManager").GetComponent<enemyExample>();

        //		Debug.Log("Enemy Name INIT: " + enemy.EnemyName);


        scenarioScript = new List <string>()
        {
            "WTF!",
            "You see the president, but he is lying down on the green line, wait, he was tied on the railway by 3 Korean brothers.",
            "What is your action now?"
        };
    }
Exemple #3
0
    void Start()
    {
//		battleLogTextUI = GameObject.FindGameObjectWithTag(Tags.BATTLE_LOG_TEXT_UI).GetComponent<Text>();
        battleLog            = GameObject.FindGameObjectWithTag(Tags.DYNAMIC_BATTLE_LOG).GetComponent <DynamicScrollView>();
        talkButton           = GameObject.FindGameObjectWithTag(Tags.TALK_BUTTON).GetComponent <Button>();
        player               = GameObject.FindGameObjectWithTag(Tags.PLAYER).GetComponent <player> ();
        playerinput          = GameObject.FindGameObjectWithTag(Tags.PLAYER_INPUT_FIELD).GetComponent <InputField> ();
        playerinput.enabled  = false;
        showEnemyDescription = GameObject.FindGameObjectWithTag(Tags.ENEMY_DESCRIPTION_UI).GetComponent <ShowEnemyDescription>();

        NpcUI   = GameObject.FindGameObjectWithTag(Tags.NPC_NAME).GetComponent <Text> ();
        inputmg = GameObject.Find("InputManager").GetComponent <InputManager> ();

        avatar = GameObject.FindGameObjectWithTag(Tags.ENEMY_AVATAR).GetComponent <Image> ();
        //Initialize Enemy
//		enemy = GameObject.Find("EnemyManager").GetComponent<enemyExample>();

//		Debug.Log("Enemy Name INIT: " + enemy.EnemyName);

        scenarioScript = new List <string>()
        {
            " Oh Shit! ",
            " The Ultimate DoucheBag suddenly blocks your way, what do you wanna do?",
            " USER GUIDE 2.0! ",
            " To battle, type ONLY 1 word each time! ",
            " THAT'S ALL! ",
            " Now, TYPE! "
        };
    }
Exemple #4
0
    void Start()
    {
        //		battleLogTextUI = GameObject.FindGameObjectWithTag(Tags.BATTLE_LOG_TEXT_UI).GetComponent<Text>();
        battleLog            = GameObject.FindGameObjectWithTag(Tags.DYNAMIC_BATTLE_LOG).GetComponent <DynamicScrollView>();
        talkButton           = GameObject.FindGameObjectWithTag(Tags.TALK_BUTTON).GetComponent <Button>();
        player               = GameObject.FindGameObjectWithTag(Tags.PLAYER).GetComponent <player> ();
        playerinput          = GameObject.FindGameObjectWithTag(Tags.PLAYER_INPUT_FIELD).GetComponent <InputField> ();
        playerinput.enabled  = false;
        showEnemyDescription = GameObject.FindGameObjectWithTag(Tags.ENEMY_DESCRIPTION_UI).GetComponent <ShowEnemyDescription>();
        inputmg              = GameObject.Find("InputManager").GetComponent <InputManager> ();

        Debug.Log(playerinput.onEndEdit.GetPersistentTarget(2).ToString());

        NpcUI  = GameObject.FindGameObjectWithTag(Tags.NPC_NAME).GetComponent <Text> ();
        avatar = GameObject.FindGameObjectWithTag(Tags.ENEMY_AVATAR).GetComponent <Image> ();
        //Initialize Enemy
        //		enemy = GameObject.Find("EnemyManager").GetComponent<enemyExample>();

        //		Debug.Log("Enemy Name INIT: " + enemy.EnemyName);


        scenarioScript = new List <string>()
        {
            "Suprise!",
            "As u steps onto the center of the grassfield, a shining light blasted your senses, now you are blind",
            "'kill these NorthEastern scums!' you heard vile dialogues from voices that are kind of BU but not really. ",
            " You asked: 'who are you assholes?' \n",
            "voices that are kind of BU but not really: 'we are Boston University freedom fighters! ",
            "So long has your school be shittin on our heads, is time to reclaim whats ours! make BU great again!'",
            "Then A BU GUY stands in front of you.",
            "What is your action now?"
        };
    }