void Start() { state = GameObject.Find("_GM").GetComponent <_GM_Script>(); scene = GameObject.Find("SceneChanger").GetComponent <SceneChangerScript>(); loc = GameObject.Find("LocationController").GetComponent <LocationControllerScript>(); StartCoroutine(CheckSaveLoad()); }
// 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); }
private void Start() { loc = GameObject.Find("LocationController").GetComponent <LocationControllerScript>(); }