public static BloonProperties GetBloonPropertiesFromBloonType(BloonTypes bloonType) { if (!_initialized) { Initialize(); } return(_bloons[bloonType]); }
public BloonController SpawnBloon(BloonTypes bloonType) { GameObject newBloon = Instantiate(_bloonPrefab, _spawnPosition, Quaternion.identity); BloonController newBloonController = newBloon.GetComponent <BloonController>(); newBloonController.BloonProperties = BloonPropertiesProcessor.GetBloonPropertiesFromBloonType(bloonType); newBloonController.Path = _pathController; newBloonController.InitializeTargetPosition(0); return(newBloonController); }
public BloonProperties WithBloonType(BloonTypes bloonType) { _bloonType = bloonType; return(this); }
public void SpawnBloonOfType(BloonTypes bloonType) { var bloonProperties = BloonPropertiesProcessor.GetBloonPropertiesFromBloonType(bloonType); SpawnBloon(bloonProperties, _pathHeadPosition, 0); }
public SpawnGroupBuilder OfBloonType(BloonTypes bloonType) { _bloonType = bloonType; return(this); }