void Awake() { if (instance == null) { instance = this; } else if (instance != this) { Destroy(gameObject); } }
public Transform cameraTrans; //카메라 받아오기 void Start() { gameManager = GameObject.Find("GameManager").GetComponent <GameManager>(); enemyRespawner = GameObject.Find("EnemyRespawner").GetComponent <EnemyRespawner>(); }
public void SetRespawner(EnemyRespawner respawner) { this.respawner = respawner; }