// Use this for initialization void Start() { levelFadeAnim = GameObject.Find("LevelFade").GetComponent <Animator>(); audioMast = AudioMaster.instance; exitPoint = GameObject.FindWithTag("Exit").GetComponent <Transform>(); playerScript = GameObject.Find("Player").GetComponent <PlayerController>(); nlgMan = playerScript.gameObject.GetComponent <NLGManager>(); }
void Start() { //All statements in this method set the variables to the correct components of the correct GameObjects. boltBar = GameObject.Find("boltBar").GetComponent <RectTransform>(); playerRgdBdy = GetComponent <Rigidbody2D>(); wallL = GameObject.Find("wallLeft").GetComponent <CircleCollider2D>(); wallR = GameObject.Find("wallRight").GetComponent <CircleCollider2D>(); groundCircle = GetComponent <CircleCollider2D>(); nlgMan = GetComponent <NLGManager>(); audioMast = AudioMaster.instance; }
void Start() { playerNlg = GameObject.Find("Player").GetComponent <NLGManager>(); wBoxEnemy.SetActive(false); enemyRgdBdy = GetComponent <Rigidbody2D>(); RangeA = transform.position.x + rangeRadius; RangeB = transform.position.x - rangeRadius; SpawnX = transform.position.x; SpawnY = transform.position.y; audioMast = AudioMaster.instance; respawnScript = GameObject.Find("mournerCircle").GetComponent <RespawnManager>(); }
void Start() { quickSuccessionFallsCount = 0; quickSuccessionFallsTime = 0; quickSuccessionStabsCount = 0; quickSuccessionStabsTime = 0; deathTextAppear = GameObject.Find("DeathTextAppear").GetComponent <Text>(); audioMast = AudioMaster.instance; enemyGameObjects = GameObject.FindGameObjectsWithTag("Enemy"); playerScript = GameObject.Find("Player").GetComponent <PlayerController>(); playerNlg = GameObject.Find("Player").GetComponent <NLGManager>(); spawnPoint = gameObject; //reference the spawn location }