// Start is called before the first frame update void Start() { myOutput = GetComponentInParent <ConnectionOutputScript>(); if (startActive) { active = true; } if (harmful) { anim = GetComponent <Animator>(); } }
// Start is called before the first frame update void Start() { myOutput = GetComponentInParent <ConnectionOutputScript>(); }
// Start is called before the first frame update void Start() { myCollider = GetComponentInChildren <BoxCollider2D>(); spriteRen = GetComponentInChildren <SpriteRenderer>(); myOutput = GetComponent <ConnectionOutputScript>(); }