File tree 1 file changed +6
-0
lines changed
1 file changed +6
-0
lines changed Original file line number Diff line number Diff line change @@ -173,6 +173,8 @@ void UpdateVolume(bool engineIsOn) {
173
173
}
174
174
175
175
IEnumerator Enter ( bool clearScreen = false ) {
176
+
177
+ ClearTrails ( ) ;
176
178
177
179
if ( clearScreen ) {
178
180
var megaExplosion = MegaExplosionPool . GetObject ( ) ;
@@ -188,6 +190,7 @@ IEnumerator Enter(bool clearScreen = false) {
188
190
189
191
VoidHit . HitAll ( ) ;
190
192
193
+ ClearTrails ( ) ;
191
194
FireParticle . Clear ( ) ;
192
195
FireParticle . Play ( ) ;
193
196
@@ -326,7 +329,10 @@ public void ReceiveNewLife() {
326
329
public void ClearTrails ( ) {
327
330
328
331
for ( var i = 0 ; i < WingTrails . Count ; i ++ ) {
332
+ // not sure why disabling/re-enabling is needed after Unity update
333
+ WingTrails [ i ] . enabled = false ;
329
334
WingTrails [ i ] . Clear ( ) ;
335
+ WingTrails [ i ] . enabled = true ;
330
336
}
331
337
332
338
}
You can’t perform that action at this time.
0 commit comments