Beispiel #1
0
 private void Awake()
 {
     bLife = GetComponent <bossLife>();
     bLife.OnStunStarted += StunStarted;
     bLife.OnStunEnded   += StunEnded;
     if (phaseIndex < phases.Length && phases[phaseIndex].startPattern != null)
     {
         currentPattern = phases[phaseIndex].startPattern.Attach(gameObject);
         currentPattern.OnPatternEnded += PatternChange;
     }
 }
Beispiel #2
0
 // Start is called before the first frame update
 void Start()
 {
     bl = gameObject.GetComponentInParent <bossLife>();
 }