void Start() { rgbd = GetComponent <Rigidbody2D>(); ZW = GameObject.FindGameObjectWithTag("Player").GetComponent <EndOfTheWorld>(); direction = GameObject.FindGameObjectWithTag("Player").GetComponent <Transform>().localScale.x; transform.localScale = GameObject.FindGameObjectWithTag("Player").GetComponent <Transform>().localScale; }
// Start is called before the first frame update void Start() { Player = GetComponent <Rigidbody2D>(); TW = GetComponent <EndOfTheWorld>(); ATK = GetComponent <PlayerAttack>(); Dash = GetComponent <Dash>(); }
void Start() { target = GameObject.FindGameObjectWithTag("Player"); rb = GetComponent <Rigidbody2D>(); anim = GetComponent <Animator>(); ZW = GameObject.FindGameObjectWithTag("Player").GetComponent <EndOfTheWorld>(); }
void Start() { rgbd = GetComponent <Rigidbody2D>(); ZW = GameObject.FindGameObjectWithTag("Player").GetComponent <EndOfTheWorld>(); }