Exemplo n.º 1
0
    void Start()
    {
        if (instance != null)
        {
            Debug.LogWarning("Only one EnemyManager allowed");
        }

        instance = this;

        if (enemyDestination == null)
        {
            Debug.LogWarning("No enemy destination set!");
            return;
        }
    }