IEnumerator FillPanel() { metalManager = FindObjectOfType <MetalManager>(); if (turret == null) { yield return(new WaitWhile(() => turret == null)); } SetName(); SetInfo(); SetButton(); }
public void SetManagingObjects(MetalManager metallManager, EnemyList enemyList) // called after spwan to set refs { this.metallManager = metallManager; this.enemyList = enemyList; }