Ejemplo n.º 1
0
 /// <summary>
 /// Funzione che attiva il boss
 /// </summary>
 public override void StartBoss()
 {
     base.StartBoss();
     Boss2SMController.Context context = new Boss2SMController.Context(this, sm, lvlMng);
     sm.Setup(context);
     tourretsCtrl.Setup(this);
     laserCtrl.Setup(this);
     lifeCtrl.Setup(this);
     collisionCtrl.Setup(this);
     phaseCtrl.Setup(this);
     coverBlockCtrl.Setup();
 }
Ejemplo n.º 2
0
 /// <summary>
 /// Setup dello stato
 /// </summary>
 /// <param name="_context"></param>
 /// <param name="_onStateStartCallback"></param>
 /// <param name="_onStateEndCallback"></param>
 public override void Setup(IContext _context, Action <IState> _onStateStartCallback, Action <IState> _onStateEndCallback)
 {
     base.Setup(_context, _onStateStartCallback, _onStateEndCallback);
     context = _context as Boss2SMController.Context;
 }