// Use this for initialization void Start() { health = maxHealth; player = GameObject.FindGameObjectWithTag("player").transform; player_script = player.GetComponent <player_Manager>(); gridUpdater = GameObject.Find("PathFinding").GetComponent <Grid>(); }
private void Start() { enemyRB = GetComponent <Rigidbody2D>(); StartCoroutine(PatrolSwitcher()); PatrolSwitcherRunning = true; player = GameObject.FindGameObjectWithTag("player").transform; shootPoint1 = GameObject.Find("shootPoint1"); shootPoint1.SetActive(false); StartCoroutine(ShootSelector()); health = maxHealth; HeroManager = player.gameObject.GetComponent <player_Manager>(); }
// Use this for initialization void Start() { playerManager = GameObject.FindGameObjectWithTag("player").GetComponent <player_Manager>(); anim = gameObject.GetComponentInChildren <Animator>(); }
// Use this for initialization void Start() { anim = GetComponentInParent <Animator>(); playerManager = gameObject.GetComponentInParent <player_Manager>(); }
// Use this for initialization void Start() { currentSpawn = GameObject.FindGameObjectWithTag("startSpawn").transform; toSpawn = GameObject.FindGameObjectWithTag("player").transform; playerManager = GameObject.FindGameObjectWithTag("player").GetComponent <player_Manager>(); }
// Use this for initialization void Start() { player_script = gameObject.GetComponent <player_Manager>(); }
// Use this for initialization void Start() { playerManager = GameObject.FindGameObjectWithTag("player").GetComponent <player_Manager>(); }