Exemplo n.º 1
0
        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);
        }
Exemplo n.º 2
0
 private void SetupBloonEvents(BloonController bloonController)
 {
     bloonController.OnBloonReachedEndOfPath += DecrementLives;
 }