Esempio n. 1
0
    public void SqawnEnemyBoss(GameObject obj, Vector2 pos, Quaternion qua)
    {
        if (obj == null)
        {
            return;
        }
        if (bossDic.ContainsKey(obj.name))
        {
            return;
        }

        //召喚演出
        GameObject bossObj = SqawnEnemy(obj, pos, qua);

        enemyList.Add(bossObj);
        EnemyBossController bossCtrl = bossObj.GetComponent <EnemyBossController>();

        bossDic.Add(obj.name, bossCtrl);
    }
Esempio n. 2
0
 private void Awake()
 {
     instance = this;
 }
 public void SetEnemy(EnemyBossController ctrl, int l = 1)
 {
     enemyCtrl = ctrl;
     level     = l;
 }