Beispiel #1
0
 void Start()
 {
     state = MenuState.MAIN;
     menu.SetActive(false);
     gm    = GameObject.Find("_GM").GetComponent <_GM_Script>();
     scene = GameObject.Find("SceneChanger").GetComponent <SceneChangerScript>();
 }
Beispiel #2
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...";
        }
    }
Beispiel #3
0
    void Start()
    {
        state = GameObject.Find("_GM").GetComponent <_GM_Script>();
        scene = GameObject.Find("SceneChanger").GetComponent <SceneChangerScript>();
        loc   = GameObject.Find("LocationController").GetComponent <LocationControllerScript>();

        StartCoroutine(CheckSaveLoad());
    }
 private void Start()
 {
     gm          = GameObject.Find("_GM").GetComponent <_GM_Script>();
     count       = 0;
     placeholder = 0;
     finished    = true;
     line        = "";
 }
Beispiel #5
0
 // Start is called before the first frame update
 void Start()
 {
     handlingDeath = false;
     es            = GameObject.Find("EnemyStatus").GetComponent <EnemyStatusScript>();
     gm            = GameObject.Find("_GM").GetComponent <_GM_Script>();
     player        = wasd.p.GetComponent <PlayerScript>();
     this.StartCoroutine(StartEnemy());
     camshake = GameObject.Find("Main Camera").GetComponent <Animator>();
 }
Beispiel #6
0
 void Start()
 {
     LIGHT_ON      = false;
     SET_PLAYSTATE = false;
     player        = GameObject.Find("Player");
     enemies       = GameObject.FindGameObjectsWithTag("Enemy");
     gm            = GameObject.Find("_GM").GetComponent <_GM_Script>();
     gm.playState  = _GM_Script.PlayState.PLAYER;
 }
 // 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>();
 }
Beispiel #8
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());
 }
    /*
     * Item ID:
     *
     *      0 Flashlight
     *      1 Bat
     *      2 Moonstone
     *      3 Raygun
     *
     *      4 Strange Drawing 1
     *      5 Strange Drawing 2
     *      6 Strange Drawing 3
     *      7 Strange Drawing 4
     *
     *      8 Weird Junk 1
     *      9 Weird Junk 2
     *      10 Weird Junk 3
     *
     *      11 Room 101 Key
     *      22 Room 202 Key
     *      26 Room 206 Key
     *      33 Room 303 Key
     *
     *      44 Master Key
     *
     *      45 Health 1
     *      46 Health 2
     *      47 Health 3
     *      48 Health 4
     *      49 Health 5
     *
     *      50 Moonshine 1
     *      51 Moonshine 2
     *      52 Moonshine 3
     *      53 Moonshine 4
     *      54 Moonshine 5
     *
     */

    void Start()
    {
        leftmsg         = "";
        rightmsg        = "";
        gm              = GameObject.Find("_GM").GetComponent <_GM_Script>();
        item            = GameObject.Find("ItemStatus").GetComponent <ItemStatusScript>();
        leftcontrols    = "WASD / DPAD / Joysticks \n'E' / [A] / [CROSS]\n'Q' / [B] / [CIRCLE] \n";
        leftcontrols   += "'M' / [Y] / [TRIANGLE] \n'I' / [X] / [SQUARE] \n'F' / [RB] / [R1] \n";
        leftcontrols   += "TAB / [LB] / [L1] \nSPACE / [RT] / [R2] \n'T' or SHIFT / [LT] / [L2]\n\nESC";
        fixcontrol.text = leftcontrols;
    }
Beispiel #10
0
    // Start is called before the first frame update
    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>();

        player.PlayerLoc = 5;

        hidethis.SetActive(false);
    }
Beispiel #11
0
 void Start()
 {
     gm       = GameObject.Find("_GM").GetComponent <_GM_Script>();
     dialogue = GameObject.Find("DialoguePopup").GetComponent <DialoguePopupScript>();
 }
 // Start is called before the first frame update
 void Start()
 {
     triggerdone = false;
     player      = GameObject.Find("Player").GetComponent <PlayerScript>();
     gm          = GameObject.Find("_GM").GetComponent <_GM_Script>();
 }