Exemplo n.º 1
0
    private void Awake()
    {
        _cubeCounts     = new int[2];
        _destroyedCubes = new int[2];

        _cubeCounts[0] = FindCubeCount(FirstHalfCubeParents);
        _cubeCounts[1] = FindCubeCount(SecondHalfCubeParents);

        _destroyedCubes[0] = 0;
        _destroyedCubes[1] = 0;

        _deathAction += GameOver;
        _scoreAction += PlayerScored;

        for (int i = 0; i < DeathWalls.Length; i++)
        {
            DeathWalls[i].AssignCallbacks(_scoreAction, _deathAction);
        }

        _currentLevelPart = 0;

        UIC.ResetBridges();
        UIC.SetLevelTexts(1);
        HC.SetInput(true);

        CS.AssignCameraTransform(Camera.main.transform);
    }