Example #1
0
    protected void Awake()
    {
        this.lineMaterial       = new Material(Shader.Find("Unlit/Color"));
        this.lineMaterial.color = Color.gray;
        this.rect = GetComponent <RectTransform>();

        indicatorPool = new ExtendablePool <TimeSliderIndicator>(timeIndicatorPrefab, indicatorContainer);
        indicatorPool.SetInitialSize(30);
    }