Example #1
0
    void Start()
    {
        gm       = GameObject.Find("_GM").GetComponent <_GM_Script>();
        gs       = GameObject.Find("GameStatus").GetComponent <GameStatusScript>();
        dialogue = GameObject.Find("DialoguePopup").GetComponent <DialoguePopupScript>();
        bubble   = GameObject.Find("PlayerBubble").GetComponent <Animator>();
        player   = GameObject.Find("Player").GetComponent <PlayerScript>();


        if (DoorLocked)
        {
            DoorDialogue    = new string[1];
            DoorDialogue[0] = "Locked.";
        }
        else if (DoorLocked && RequiresRaygun)
        {
            DoorDialogue    = new string[1];
            DoorDialogue[0] = "Locked. There are some strange markings carved into the door.";
        }
        else if (RequiresRaygun)
        {
            AlienDialogue    = new string[1];
            AlienDialogue[0] = "Jammed. The door will not open. There must be something...";
        }
    }
Example #2
0
 // Start is called before the first frame update
 void Start()
 {
     PlayerHere = false;
     scene      = GameObject.Find("SceneChanger").GetComponent <SceneChangerScript>();
     player     = GameObject.Find("Player").GetComponent <PlayerScript>();
     gs         = GameObject.Find("GameStatus").GetComponent <GameStatusScript>();
     bubble     = GameObject.Find("PlayerBubble").GetComponent <Animator>();
     dialogue   = GameObject.Find("DialoguePopup").GetComponent <DialoguePopupScript>();
     gm         = GameObject.Find("_GM").GetComponent <_GM_Script>();
 }
Example #3
0
 void Start()
 {
     gm       = GameObject.Find("_GM").GetComponent <_GM_Script>();
     player   = GameObject.Find("Player").GetComponent <PlayerScript>();
     gs       = GameObject.Find("GameStatus").GetComponent <GameStatusScript>();
     dialogue = GameObject.Find("DialoguePopup").GetComponent <DialoguePopupScript>();
     bubble   = GameObject.Find("PlayerBubble").GetComponent <Animator>();
     scene    = GameObject.Find("SceneChanger").GetComponent <SceneChangerScript>();
     this.StartCoroutine(StartNPC());
 }
Example #4
0
    private void Start()
    {
        count    = 0;
        waiting  = false;
        gm       = GameObject.Find("_GM").GetComponent <_GM_Script>();
        loc      = GameObject.Find("LocationController").GetComponent <LocationControllerScript>();
        scene    = GameObject.Find("SceneChanger").GetComponent <SceneChangerScript>();
        bubble   = GameObject.Find("PlayerBubble").GetComponent <Animator>();
        player   = GameObject.Find("Player").GetComponent <PlayerScript>();
        gs       = GameObject.Find("GameStatus").GetComponent <GameStatusScript>();
        dialogue = GameObject.Find("DialoguePopup").GetComponent <DialoguePopupScript>();

        GetCurrentFloor();
        player.PlayerLoc = 5;

        hidethis.SetActive(false);
    }
Example #5
0
 void Start()
 {
     gm       = GameObject.Find("_GM").GetComponent <_GM_Script>();
     dialogue = GameObject.Find("DialoguePopup").GetComponent <DialoguePopupScript>();
 }