[HideInInspector] public bool isAttacking; //check status of attack public override void Start() { base.Start(); //parent start method //Get components rigid2D = GetComponentInParent <Rigidbody2D>(); animatorController = GetComponent <AnimatorController>(); //Set enemy data from config damageRange = new DoubleFloat(enemyConfig.damageRange.min, enemyConfig.damageRange.max); stats.statsData.HP = enemyConfig.HP; //add method hitInfo to enent, need for setup logic when enemy get hit hitInfo += HitDetected; }