Example #1
0
    void Awake()
    {
        m_spawnController = GameObject.FindWithTag("SpawnController").GetComponent<SpawnController>();

        if(m_spawnController)
            m_spawnController.RegisterSpawner(this);
    }