setting up enemy consumption and increasing score - maybe change?
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user