private void Start() { _selfCollider = GetComponent <Collider2D>(); _currentTime = 0; if (_force != Vector2.zero) { _pool = FindObjectsOfType <PoolForObjects>().Where(a => a.GetComponent <Separator>() != null).First(); } }
public void FillObject(IPoolForObjects selfPool, IPoolForObjects runablePool, float startTime) { SelfObjectForPool = selfPool; _runablePool = runablePool; SpawnTime = startTime; }