File tree 1 file changed +16
-4
lines changed 1 file changed +16
-4
lines changed Original file line number Diff line number Diff line change @@ -127,7 +127,10 @@ protected void crTxt()
127
127
}
128
128
public void createObjects ( )
129
129
{
130
- UpperMenu . SetActive ( false ) ;
130
+ if ( UpperMenu != null )
131
+ {
132
+ UpperMenu . SetActive ( false ) ;
133
+ }
131
134
crCanvas ( ) ;
132
135
crRawImage ( ) ;
133
136
if ( disableText == false && txtAdd != null )
@@ -310,7 +313,10 @@ protected IEnumerator SequenceOfLines(float seqMove)
310
313
}
311
314
//Wait for the next frame and destroy canvas
312
315
yield return null ;
313
- UpperMenu . SetActive ( true ) ;
316
+ if ( UpperMenu != null )
317
+ {
318
+ UpperMenu . SetActive ( true ) ;
319
+ }
314
320
GameObject . Destroy ( nCanvas . gameObject ) ;
315
321
}
316
322
protected IEnumerator VerticalSqueeze ( float seqMove )
@@ -484,7 +490,10 @@ protected IEnumerator VerticalSqueeze(float seqMove)
484
490
}
485
491
//Wait for the next frame and destroy canvas
486
492
yield return null ;
487
- UpperMenu . SetActive ( true ) ;
493
+ if ( UpperMenu != null )
494
+ {
495
+ UpperMenu . SetActive ( true ) ;
496
+ }
488
497
GameObject . Destroy ( nCanvas . gameObject ) ;
489
498
}
490
499
protected IEnumerator VerticalSqueeze2 ( float seqMove )
@@ -655,7 +664,10 @@ protected IEnumerator VerticalSqueeze2(float seqMove)
655
664
}
656
665
//Wait for the next frame and destroy canvas
657
666
yield return null ;
658
- UpperMenu . SetActive ( true ) ;
667
+ if ( UpperMenu != null )
668
+ {
669
+ UpperMenu . SetActive ( true ) ;
670
+ }
659
671
GameObject . Destroy ( nCanvas . gameObject ) ;
660
672
}
661
673
protected void jumpLbl ( )
You can’t perform that action at this time.
0 commit comments