private void OnEnable() { dropItems = (DropItemsList)target; itemsList = dropItems.GetComponent <ItemsList>() as ItemsList; enemyList = dropItems.GetComponent <EnemyList>() as EnemyList; }