setting up enemy consumption and increasing score - maybe change?

This commit is contained in:
Amaan Shawkath
2022-04-19 21:43:27 +01:00
parent 209470d610
commit e2511e2d53
7 changed files with 6779 additions and 10 deletions

View File

@@ -21,10 +21,12 @@ public class BulletManager : MonoBehaviour
public List<PatternMap> PatternMap = new List<PatternMap>();
public Pattern[] activePatterns;
private GameManager gameManager;
// Start is called before the first frame update
void Start()
{
gameManager = FindObjectOfType<GameManager>();
}
// Update is called once per frame
@@ -33,6 +35,11 @@ public class BulletManager : MonoBehaviour
}
public void EnemyConsumed(float multiplier)
{
gameManager.EnemyConsumed(multiplier);
}
public void SpawnPattern(PatternTypes pattern, Enemy enemy)
{
GameObject patternObject = Instantiate(PatternMap.Find(x => x.patternType == pattern).pattern, enemy.transform.position, Quaternion.identity);