Example #1
0
 public void OnRetrieve(ExtendablePool <Zombie> pool)
 {
     health           = maxHealth;
     Agent.enabled    = true;
     AudioSrc.enabled = true;
     SetCollidersEnabled(true);
 }
Example #2
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);
    }
Example #3
0
    public void OnRetrieve(ExtendablePool <PoolGameObject> pool)
    {
        this.pool = pool;

        for (int i = 0; i < listeners.Count; i++)
        {
            listeners[i].OnRetrieve(this);
        }
    }
Example #4
0
    public void OnRetrieve(ExtendablePool <PoolableParticles> pool)
    {
        this.pool        = pool;
        this.timeCounter = 0f;
        this.running     = false;

        if (!activateOnFirstFrame)
        {
            ps.Clear();
            ps.Stop();
            ps.Play();
        }
    }
Example #5
0
 public void OnRetrieve(ExtendablePool <PickableItemContainer> pool)
 {
     ammo.gameObject.SetActive(false);
     health.gameObject.SetActive(false);
 }
Example #6
0
 protected override void OnAwake()
 {
     this.chunkPool = new ExtendablePool <EmotionTrackChunk>(emotionChunkPrefab, this.transform);
     this.chunkPool.SetInitialSize(15);
 }
Example #7
0
 protected override void Initialize()
 {
     pool = new ExtendablePool <T>(size, prefab, parent);
 }
 public void OnRetrieve(ExtendablePool <TimeSliderIndicator> pool)
 {
 }
Example #9
0
 public void OnRetrieve(ExtendablePool <EmotionTrackChunk> pool)
 {
 }