public override void Init(int aLevel, int damage, BossManager bossManager) {
		this.bossManager = bossManager;
		this.damage = damage;
		this.level = aLevel;
		SpawnParticle();
		transform.position = bossManager.GetBossMiddlePoint();
		// StartCoroutine("CheckIfAlive");
		StartCoroutine("BossGetHit");
		base.Init();
	}
示例#2
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();
	}
示例#3
0
 public override void Init(int aLevel, int damage, BossManager bossManager)
 {
     this.bossManager = bossManager;
     this.damage      = damage;
     this.level       = aLevel;
     SpawnParticle();
     transform.position = bossManager.GetBossMiddlePoint();
     // StartCoroutine("CheckIfAlive");
     StartCoroutine("BossGetHit");
     base.Init();
 }
 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();
 }
示例#5
0
	public override void Init(int aLevel, int damage, BossManager bossManager) {
		this.bossManager = bossManager;
		this.attackDamage = damage;
		this.level = aLevel;
		SpawnParticle();
		Vector3 toPos = bossManager.GetBossMiddlePoint();;
		Vector2 random = Random.insideUnitCircle / 6f;
		toPos.y += random.y;
		toPos.x += random.x;
		transform.position = toPos;
		// StartCoroutine("CheckIfAlive");
		StartCoroutine("BossGetHit");
		base.Init();
	}
示例#6
0
    public override void Init(int aLevel, int damage, BossManager bossManager)
    {
        this.bossManager  = bossManager;
        this.attackDamage = damage;
        this.level        = aLevel;
        SpawnParticle();
        Vector3 toPos  = bossManager.GetBossMiddlePoint();;
        Vector2 random = Random.insideUnitCircle / 6f;

        toPos.y           += random.y;
        toPos.x           += random.x;
        transform.position = toPos;
        // StartCoroutine("CheckIfAlive");
        StartCoroutine("BossGetHit");
        base.Init();
    }
示例#7
0
	public override void Init(int aLevel, int damage, BossManager bossManager) {
		this.bossManager = bossManager;
		this.damage = damage;
		this.level = aLevel;
		Vector3 toPos = bossManager.GetBossMiddlePoint();
		// Vector2 random = Random.insideUnitCircle / 6f;
		// toPos.y += random.y;
		// toPos.x += random.x;
		// transform.position = toPos;
		
		for (int i = 0; i < level; i++) {
			StartCoroutine(Shoot(i));
		}
		Invoke("BossGetHit", 0.1f);
		Invoke("Destroy", 1.5f);
	}
	public override void Init(int level, int damage, BossManager bossManager, Vector3 fromPos, bool isYou) {
		this.bossManager = bossManager;
		this.damage = damage;
		this.level = level;
		if (isYou) {
			flameBig.transform.position = fromPos;
			NGUITools.SetActive(flameBig, true);
			NGUITools.SetActive(flameSmall, false);
		} else {
			flameSmall.transform.position = fromPos;
	    flameSmall.transform.rotation = Quaternion.LookRotation(bossManager.GetBossMiddlePoint() - flameSmall.transform.position);
			NGUITools.SetActive(flameBig, false);
			NGUITools.SetActive(flameSmall, true);
		}
		Invoke("BossGetHit", 1.5f);
		Invoke("Destroy", 5f);
	}
示例#9
0
    public override void Init(int aLevel, int damage, BossManager bossManager)
    {
        this.bossManager = bossManager;
        this.damage      = damage;
        this.level       = aLevel;
        Vector3 toPos = bossManager.GetBossMiddlePoint();

        // Vector2 random = Random.insideUnitCircle / 6f;
        // toPos.y += random.y;
        // toPos.x += random.x;
        // transform.position = toPos;

        for (int i = 0; i < level; i++)
        {
            StartCoroutine(Shoot(i));
        }
        Invoke("BossGetHit", 0.1f);
        Invoke("Destroy", 1.5f);
    }
 public override void Init(int level, int damage, BossManager bossManager, Vector3 fromPos, bool isYou)
 {
     this.bossManager = bossManager;
     this.damage      = damage;
     this.level       = level;
     if (isYou)
     {
         flameBig.transform.position = fromPos;
         NGUITools.SetActive(flameBig, true);
         NGUITools.SetActive(flameSmall, false);
     }
     else
     {
         flameSmall.transform.position = fromPos;
         flameSmall.transform.rotation = Quaternion.LookRotation(bossManager.GetBossMiddlePoint() - flameSmall.transform.position);
         NGUITools.SetActive(flameBig, false);
         NGUITools.SetActive(flameSmall, true);
     }
     Invoke("BossGetHit", 1.5f);
     Invoke("Destroy", 5f);
 }