Example #1
0
    void Start()
    {
        _player      = GameObject.FindGameObjectWithTag("Player").GetComponent <PlayerController>();
        _ground      = GetComponent <GroundController>();
        _soundPlayer = GetComponent <SoundPlayer>();

        _ground.BuildGround();

        _walkableBlocks = _ground.GetWalkableBlocks();
        SpawnEnemies();
    }