private void spawnAttack(AttackPattern attackPattern) { var attack = UnityHelper.Instantiate(AttackPrefab).GetComponent <AttackBehaviour>(); attack.Initialize(attackPattern); }