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); }
private void Awake() { instance = this; }
public void SetEnemy(EnemyBossController ctrl, int l = 1) { enemyCtrl = ctrl; level = l; }