void Start() { player = GameObject.FindGameObjectWithTag("Player"); GM = FindObjectOfType <GameManager>(); path = player.GetComponent <CustomPathAI>(); pathController = GameObject.Find("A*").GetComponent <AstarPath>(); }
void Start() { rb = this.GetComponent <Rigidbody2D>(); rb.bodyType = RigidbodyType2D.Static; path = player.GetComponent <CustomPathAI>(); pathControllerScript = pathController.GetComponent <AstarPath>(); }
void Start() { path = player.GetComponent <CustomPathAI>(); rb = player.GetComponent <Rigidbody2D>(); ladderBase = ladderB.transform.position; ladderTop = ladderT.transform.position; }
// Start is called before the first frame update void Start() { path = player.GetComponent <CustomPathAI>(); GM = FindObjectOfType <GameManager>(); fallScript = GetComponent <SpikeFall>(); spriteRenderer = GetComponent <SpriteRenderer>(); rb = GetComponent <Rigidbody2D>(); playerRb = player.GetComponent <Rigidbody2D>(); localScale = transform.localScale; }
void Start() { path = player.GetComponent <CustomPathAI>(); GM = FindObjectOfType <GameManager>(); spikeRb = spike.GetComponent <Rigidbody2D>(); }
void Start() { path = player.GetComponent <CustomPathAI>(); GM = FindObjectOfType <GameManager>(); }
void Start() { path = player.GetComponent <CustomPathAI>(); lightEffect.SetActive(false); }
// Start is called before the first frame update void Start() { path = player.GetComponent <CustomPathAI>(); }