private void Start() { _indicatorBuilder.Create() .SetOwner(transform) .SetColor(_color) .SetSprite(_aim) .Build(); }
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); }
private void Start() { _indicatorManager.Create() .SetOwner(transform) .SetColor(_indicatorColor); }