Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- using PlinioJRM.Entities;
- using UnityEngine;
- namespace PlinioJRM.Systems.Waves {
- [CreateAssetMenu(fileName = "Wave Strategy", menuName = "Strategies/Wave")]
- public class WaveStrategy : ScriptableObject {
- public float spawnInterval;
- public int maxScorePerSpawn;
- public bool canSpawnGroups;
- [Range(0, 100)]
- public int groupChance;
- [Range(0f, 1f)] // decreases the chance percentage of adding more to the group
- public float groupChanceDecreaseFactor;
- public float minDistanceFromLastSpawn;
- public EnemySpawnScore[] enemyScores;
- }
- [Serializable]
- public struct EnemySpawnScore {
- public EnemyType Type;
- public int Score;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement