public void Initialize(EarthTotemConfig cfg) { config = cfg; currentLifeTime = config.LifeTime; var spawnPosition = transform.position; spawnPosition.y -= 0.5f; healingCircle = Instantiate(config.Circle, spawnPosition, Quaternion.identity); healingCircleScript = healingCircle.GetComponent <EarthTotemCircle>(); healingCircleScript.Initialize(config); healingCircle.transform.Rotate(new Vector3(45, 0, 0)); }
public void Initialize(EarthTotemConfig cfg) { config = cfg; ObjectsInsideCircle = new List <Collider2D>(); }