File tree Expand file tree Collapse file tree 1 file changed +15
-0
lines changed
Expand file tree Collapse file tree 1 file changed +15
-0
lines changed Original file line number Diff line number Diff line change @@ -55,15 +55,30 @@ internal static void ClearSceneElements()
5555
5656 internal static void EnqueueSkeleton ( GameObject beoc )
5757 {
58+ // Main enemy
5859 Skeleton currentEnemySkeleton = beoc . GetComponent < SkeletonAnimation > ( ) . skeleton ;
5960 currentEnemySkeleton . a = 0.7f ;
6061 enemiesSkeletons . Enqueue ( currentEnemySkeleton ) ;
6162
63+ // Music notes
6264 AirMusicNodeController note = beoc . GetComponent < AirMusicNodeController > ( ) ;
6365 if ( note ) note . m_Fx . SetActive ( false ) ;
6466
67+ // Hearts
6568 AirEnergyBottleController heart = beoc . GetComponent < AirEnergyBottleController > ( ) ;
6669 if ( heart ) heart . m_Fx . SetActive ( false ) ;
70+
71+ // Hearts on notes
72+ GameObject hpOnNote = beoc . transform . Find ( "hp_on_note(Clone)" ) ? . gameObject ;
73+ if ( hpOnNote )
74+ {
75+ Skeleton hpSkeleton = hpOnNote . GetComponent < SkeletonAnimation > ( ) . skeleton ;
76+ hpSkeleton . a = 0.7f ;
77+ AirEnergyBottleController heart2 = hpOnNote . GetComponent < AirEnergyBottleController > ( ) ;
78+ if ( heart2 ) heart2 . m_Fx . SetActive ( false ) ;
79+ enemiesSkeletons . Enqueue ( hpSkeleton ) ;
80+ }
81+
6782 }
6883
6984 internal static void UpdateQueueElements ( )
You can’t perform that action at this time.
0 commit comments