Ejemplo n.º 1
0
 public SpawnData(Enums.SpawnElement element, Enums.SpawnType type, Enums.RangeType rangeType, float hp, float damage, float speed, float range)
 {
     _element   = element;
     _type      = type;
     _rangeType = rangeType;
     _hp        = hp;
     _damage    = damage;
     _speed     = speed;
     _range     = range;
 }
Ejemplo n.º 2
0
 public static SpawnData GetSpawnData(Enums.SpawnType type)
 {
     return(_spawnsData[(int)type]);
 }
 // Start is called before the first frame update
 void Start()
 {
     _sLib = GameObject.FindGameObjectWithTag(Constants.TAG_SPRITE_LIBRARY).GetComponent <SpriteLibraryScript>();
     StartCoroutine(SpawnWave());
     _spawnType = (Enums.SpawnType)Random.Range(0, 5);
 }