예제 #1
0
 private void Start()
 {
     _indicatorBuilder.Create()
     .SetOwner(transform)
     .SetColor(_color)
     .SetSprite(_aim)
     .Build();
 }
예제 #2
0
    private void GenerateAsteroid()
    {
        Asteroid asteroid = Instantiate(_asteroidPrefab, GetGeneratePoint(), Quaternion.identity);

        asteroid.SetTarget(_target);
        asteroid.SetScores(_scores);

        Indicator indicator = _indicatorBuilder.Create()
                              .SetOwner(asteroid.transform)
                              .SetTarget(_target)
                              .SetColor(_indicatorColor)
                              .Build();

        asteroid.SetIndicator(indicator);
    }
예제 #3
0
 private void Start()
 {
     _indicatorManager.Create()
     .SetOwner(transform)
     .SetColor(_indicatorColor);
 }