示例#1
0
 // Use this for initialization
 void Start()
 {
     talk         = keepTalking; //NPC Starts at introduction
     isTalking    = false;       //Is not talking at first
     curLine      = 0;
     playerScript = GameObject.Find("Player").GetComponent <PlayerControl>();
     gameScripts  = GameObject.Find("GameController").GetComponent <game_scripts>();
     aiGraph      = GameObject.Find("GameController").GetComponent <NPC_Calc>();
     speechGraph  = gameObject.GetComponent <SpeechGraph>();
 }
示例#2
0
 // Use this for initialization
 void Start()
 {
     item = -1;
     gameScripts = GameObject.Find("GameController").GetComponent<game_scripts>();
     clueList = GameObject.Find("GameController").GetComponent<clue_list>();
 }
示例#3
0
 // Use this for initialization
 void Start()
 {
     item        = -1;
     gameScripts = GameObject.Find("GameController").GetComponent <game_scripts>();
     clueList    = GameObject.Find("GameController").GetComponent <clue_list>();
 }
示例#4
0
文件: clues.cs 项目: aj3x/enigmatic
 // Use this for initialization
 void Start()
 {
     gameScripts = GameObject.Find("GameController").GetComponent<game_scripts>();
 }
示例#5
0
    /// <summary>
    /// Goes to next node in the graph.
    /// </summary>
    public void goToNext()
    {
        PCtoNPC temp = GameObject.Find("Player").GetComponent <PCtoNPC>();

        //beats quest lose time
        if (curNode.ToString().Equals("congrat"))
        {
            game_scripts gameTemp = GameObject.Find("GameController").GetComponent <game_scripts>();
            gameTemp.loseTime(4);
        }

        if (curNode.ToString().Equals("end"))
        {
            string[] tempArr =
            {
                gameObject.name + " is...",
                "not the killer."
            };

            if (GameObject.Find("GameController").GetComponent <NPC_Calc>().killer.ToString().Equals(gameObject.ToString()))
            {
                tempArr[1] = "the killer. Congrats!";
                Application.LoadLevel("win");
            }
            GameObject.Find("GameController").GetComponent <game_scripts>().loseLife();
        }
        //special case

        /*
         * 0 Quest node
         * 1 Help node
         * 2 Busy/Passive
         * 3 Complain
         * 4 Congrats
         */
        if (curNode.ToString().Equals("passive"))
        {
            int num = 0;
            if (temp.questing())
            {
                num++;
                if (temp.getQuestNPC().Equals("Butler"))
                {
                    num++;
                }
                else
                {
                    num = 2;
                    if (temp.getQuestNPC() == temp.getTalkNPC())
                    {
                        num++;
                        if (temp.isQuestDone())
                        {
                            num++;
                        }
                    }
                }
            }
            else if (temp.getTalkNPC().Equals("Butler"))
            {
                num = 1;
            }

            goToNext(num);
        }
        else
        {
            goToNext(0);
        }
    }
示例#6
0
文件: speech.cs 项目: aj3x/enigmatic
 // Use this for initialization
 void Start()
 {
     talk = keepTalking;//NPC Starts at introduction
     isTalking = false;//Is not talking at first
     curLine = 0;
     playerScript = GameObject.Find("Player").GetComponent<PlayerControl>();
     gameScripts = GameObject.Find("GameController").GetComponent<game_scripts>();
     aiGraph = GameObject.Find("GameController").GetComponent<NPC_Calc>();
     speechGraph = gameObject.GetComponent<SpeechGraph>();
 }
示例#7
0
文件: clues.cs 项目: aj3x/enigmatic
 // Use this for initialization
 void Start()
 {
     gameScripts = GameObject.Find("GameController").GetComponent <game_scripts>();
 }
示例#8
-1
    // Use this for initialization
    void Start()
    {
        //get objects and scripts
        gameController = GameObject.Find("GameController");
        gameScripts = gameController.GetComponent<game_scripts>();
        currentTime = gameScripts.getStartTime();

        updateTime();
    }