void Start() { player = GameObject.FindGameObjectWithTag("Player"); movement = player.GetComponent <NewMovement>(); levelInt = player.GetComponent <LevelInteractions>(); }
void Start() { rby = gameObject.GetComponent <Rigidbody2D>(); _rendy = gameObject.GetComponent <SpriteRenderer>(); levelInt = this.GetComponent <LevelInteractions>(); _anim.GetComponent <Animator>(); raycast = this.GetComponent <RaycastCollission>(); _startPos = _player.transform.position; }
// Use this for initialization void Start() { rby = gameObject.GetComponent <Rigidbody2D>(); levelInt = this.GetComponent <LevelInteractions>(); _anim.GetComponent <Animator>(); }