File tree Expand file tree Collapse file tree 1 file changed +14
-14
lines changed
Assets/Scripts/ObjectPool Expand file tree Collapse file tree 1 file changed +14
-14
lines changed Original file line number Diff line number Diff line change @@ -42,19 +42,19 @@ public virtual void AddRandomForce()
4242 _rb . AddForce ( random ) ;
4343 }
4444
45- private void Update ( )
46- {
47- //The timer stands for only demostration reasons .
48- //Remove it or comment it than you can despawn your objects whenever you want !.
49-
50- if ( _timer > 0 )
51- {
52- _timer -= Time . deltaTime ;
53- }
54- else
55- {
56- ObjectPooler . Instance . Despawn ( Type , gameObject ) ;
57- }
58- }
45+ // private void Update()
46+ // {
47+ // //The timer stands for only demostration reasons .
48+ // //Remove it or comment it than you can despawn your objects whenever you want !.
49+
50+ // if (_timer > 0)
51+ // {
52+ // _timer -= Time.deltaTime;
53+ // }
54+ // else
55+ // {
56+ // ObjectPooler.Instance.Despawn(Type,gameObject);
57+ // }
58+ // }
5959
6060}
You can’t perform that action at this time.
0 commit comments