예제 #1
0
 void Awake()
 {
     if (instance == null)
     {
         instance = this;
     }
     else if (instance != this)
     {
         Destroy(gameObject);
     }
 }
예제 #2
0
    public Transform cameraTrans;   //카메라 받아오기


    void Start()
    {
        gameManager    = GameObject.Find("GameManager").GetComponent <GameManager>();
        enemyRespawner = GameObject.Find("EnemyRespawner").GetComponent <EnemyRespawner>();
    }
예제 #3
0
 public void SetRespawner(EnemyRespawner respawner)
 {
     this.respawner = respawner;
 }