public void OnRetrieve(ExtendablePool <Zombie> pool) { health = maxHealth; Agent.enabled = true; AudioSrc.enabled = true; SetCollidersEnabled(true); }
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); }
public void OnRetrieve(ExtendablePool <PoolGameObject> pool) { this.pool = pool; for (int i = 0; i < listeners.Count; i++) { listeners[i].OnRetrieve(this); } }
public void OnRetrieve(ExtendablePool <PoolableParticles> pool) { this.pool = pool; this.timeCounter = 0f; this.running = false; if (!activateOnFirstFrame) { ps.Clear(); ps.Stop(); ps.Play(); } }
public void OnRetrieve(ExtendablePool <PickableItemContainer> pool) { ammo.gameObject.SetActive(false); health.gameObject.SetActive(false); }
protected override void OnAwake() { this.chunkPool = new ExtendablePool <EmotionTrackChunk>(emotionChunkPrefab, this.transform); this.chunkPool.SetInitialSize(15); }
protected override void Initialize() { pool = new ExtendablePool <T>(size, prefab, parent); }
public void OnRetrieve(ExtendablePool <TimeSliderIndicator> pool) { }
public void OnRetrieve(ExtendablePool <EmotionTrackChunk> pool) { }