SHARE
TWEET

Untitled

SizilStank Feb 27th, 2020 86 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. public GameObject _enemyPrefab;
  2.     [SerializeField] private GameObject _bigEnemyPrefab;
  3.     [SerializeField] private GameObject _enemyContainer;
  4.     [SerializeField] private GameObject _enemyRLPrefab;
  5.     [SerializeField] private GameObject _enemyLRPrefab;
  6.     [SerializeField] private GameObject _bossFight;
  7.     [SerializeField] private GameObject _laserAmmo;
  8.     [SerializeField] private GameObject _clearWave;
  9.  
  10.     public List<GameObject> _smallEnemyGameObjectCountList = new List<GameObject>();
  11.     public List<GameObject> _bigEnemyGameObjectCountList = new List<GameObject>();
  12.     public List<GameObject> _enemyRLGameObjectCountList = new List<GameObject>();
  13.     public List<GameObject> _enemyLRGameObjectCountList = new List<GameObject>();
  14.  
  15.     [SerializeField] private float _waitTime = 3f;
  16.     [SerializeField] private float _wave2WaitTime = 6f;
  17.     [SerializeField] private float _wave2WaitTime2 = 6f;
  18.     [SerializeField] private float _bigEnemyWaitTime = 6f;
  19.  
  20.     [SerializeField] private GameObject[] _powerUps;
  21.  
  22.     [SerializeField] private AudioClip _enemyExplod;
  23.  
  24.     [SerializeField] private bool _stopSpawningOnPlayerDeath;
  25.     [SerializeField] private bool _stopSpawningEnemy;
  26.     [SerializeField] private bool _stopSpawningBigEnemy;
  27.     [SerializeField] private bool _stopSpawningPowerUps;
  28.     [SerializeField] private bool _stopSpawningRLEnemy;
  29.     [SerializeField] private bool _stopSpawningLREnemy;
  30.     [SerializeField] private bool _canSpawnSecondPowerUpWave;
  31.  
  32.     [SerializeField] private bool _isRLCoroutineStarted;
  33.     [SerializeField] private bool _isLRCoroutineStarted;
  34.  
  35.     [SerializeField] private bool _isBossSpawn;
  36.  
  37.     UIManager _uiManager;
  38.     EnemyBossScript _enemyBossScript;
  39.  
  40.     private void Start()
  41.     {
  42.         _uiManager = GameObject.Find("Canvas").GetComponent<UIManager>();
  43.  
  44.         if (_enemyBossScript != null)
  45.         {
  46.             _enemyBossScript = GameObject.Find("MainBodyBoss").GetComponent<EnemyBossScript>();
  47.         }
  48.  
  49.         for (int i = 0; i < Random.Range(10, 30); i++)
  50.         {
  51.             _smallEnemyGameObjectCountList.Add(this._enemyPrefab);
  52.         }
  53.  
  54.         for (int i = 0; i < Random.Range(5, 9); i++)
  55.         {
  56.             _bigEnemyGameObjectCountList.Add(this._bigEnemyPrefab);
  57.         }
  58.  
  59.         for (int i = 0; i < Random.Range(10, 30); i++)
  60.         {
  61.             _enemyRLGameObjectCountList.Add(this._enemyRLPrefab);
  62.         }
  63.  
  64.         for (int i = 0; i < Random.Range(10, 30); i++)
  65.         {
  66.             _enemyLRGameObjectCountList.Add(this._enemyLRPrefab);
  67.         }
  68.     }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Top