Example #1
0
 void Start()
 {
     state = MenuState.MAIN;
     menu.SetActive(false);
     gm    = GameObject.Find("_GM").GetComponent <_GM_Script>();
     scene = GameObject.Find("SceneChanger").GetComponent <SceneChangerScript>();
 }
Example #2
0
    void Start()
    {
        state = GameObject.Find("_GM").GetComponent <_GM_Script>();
        scene = GameObject.Find("SceneChanger").GetComponent <SceneChangerScript>();
        loc   = GameObject.Find("LocationController").GetComponent <LocationControllerScript>();

        StartCoroutine(CheckSaveLoad());
    }
Example #3
0
 // Handler for the Join button //
 public void AcceptButton()
 {
     //Thread looking = new Thread(() => Looking());
     //looking.Start();
     firstTime     = true;
     buttonPressed = true;
     SceneChangerScript.SceneChanger(2);
 }
Example #4
0
    void Start()
    {
        gs    = GameObject.Find("GameStatus").GetComponent <GameStatusScript>();
        state = GameObject.Find("GameState").GetComponent <GameStateScript>();
        scene = GameObject.Find("SceneChanger").GetComponent <SceneChangerScript>();


        StartCoroutine(CheckSaveLoad());
    }
Example #5
0
    // Start is called before the first frame update
    void Start()
    {
        player = GameObject.Find("Player");
        transf = player.transform;

        state = GameObject.Find("GameState").GetComponent <GameStateScript>();
        ps    = GameObject.Find("PlayerStatus").GetComponent <PlayerStatusScript>();
        scene = GameObject.Find("SceneChanger").GetComponent <SceneChangerScript>();
    }
Example #6
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 #7
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 #8
0
    void Start()
    {
        justStarted = false;
        player      = GameObject.Find("Player").GetComponent <PlayerScript>();
        gs          = GameObject.Find("GameStatus").GetComponent <GameStatusScript>();
        state       = GameObject.Find("GameState").GetComponent <GameStateScript>();
        es          = GameObject.Find("EnemyStatus").GetComponent <EnemyStatusScript>();
        loc         = GameObject.Find("LocationStatus").GetComponent <LocationStatusScript>();
        scene       = GameObject.Find("SceneChanger").GetComponent <SceneChangerScript>();

        this.StartCoroutine(StartGame());
    }
Example #9
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);
    }
Example #10
0
    void Start()
    {
        newgamebutton.Select();
        gs    = GameObject.Find("GameStatus").GetComponent <GameStatusScript>();
        state = GameObject.Find("GameState").GetComponent <GameStateScript>();
        scene = GameObject.Find("SceneChanger").GetComponent <SceneChangerScript>();


        // set GameState to mainmenu
        state.SetGameState(GameStateScript.GameState.MAIN_MENU);

        // set gameplay to none
        state.SetPlayState(GameStateScript.PlayState.NONE);

        // Set GameStatus to New
        gs.StartNewGame = true;

        hidemusic.SetActive(false);
    }
 public void AcceptButton()
 {
     firstTime = true;
     SceneChangerScript.SceneChanger(1);
 }