private void Start() { _generalChecker = transform.Find("GeneralChecker").GetComponent <GeneralChecker>(); _groundChecker = transform.Find("GroundChecker").GetComponent <EnemyGroundChecker>(); }
public void Awake() { _body = GetComponent <Rigidbody2D>(); _generalChecker = transform.Find("GeneralChecker").GetComponent <GeneralChecker>(); _groundChecker = transform.Find("GroundChecker").GetComponent <EnemyGroundChecker>(); }