void Start() { player = GetComponentInChildren <ADV_Player>(); sp_time = spawningTime; boss = FindObjectOfType <ADV_SpiderBoss>(); boss.gameObject.SetActive(false); camera2 = transform.GetChild(0).gameObject; ADV_Boss_Platforms[] allPlatforms = GetComponentsInChildren <ADV_Boss_Platforms>(); foreach (var t in allPlatforms) { t.GetComponent <SpriteRenderer>().enabled = false; } }
public void passBoss(ADV_SpiderBoss boss) { spider = boss; }