Пример #1
0
	public override void Init(int level, int damage, BossManager bossManager) {
		this.bossManager = bossManager;
		this.level = level;
		SpawnParticle(level);
		transform.position = bossManager.GetBossMiddlePoint();
		// StartCoroutine("CheckIfAlive");
		bossManager.Shake();
		bossManager.GetHit(damage);
		base.Init();
	}
Пример #2
0
 public override void Init(int level, int damage, BossManager bossManager)
 {
     this.bossManager = bossManager;
     this.level       = level;
     SpawnParticle(level);
     transform.position = bossManager.GetBossMiddlePoint();
     // StartCoroutine("CheckIfAlive");
     bossManager.Shake();
     bossManager.GetHit(damage);
     base.Init();
 }
Пример #3
0
	public override void Init(int level, int damage, BossManager bossManager) {
		this.bossManager = bossManager;
		for (int i = 0; i < level; i++) {
			StartCoroutine(SpawnParticle(i, 0.2f * i));
		}
		transform.position = bossManager.GetBossMiddlePoint();
		// StartCoroutine("CheckIfAlive");
		bossManager.Shake();
		bossManager.GetHit(damage);
		base.Init();
	}
Пример #4
0
 public override void Init(int level, int damage, BossManager bossManager)
 {
     this.bossManager = bossManager;
     for (int i = 0; i < level; i++)
     {
         StartCoroutine(SpawnParticle(i, 0.2f * i));
     }
     transform.position = bossManager.GetBossMiddlePoint();
     // StartCoroutine("CheckIfAlive");
     bossManager.Shake();
     bossManager.GetHit(damage);
     base.Init();
 }