Ejemplo n.º 1
0
    private void DestroyPlatform(Vector3 goalPlatformPos)
    {
        if (goalPlatformPos.y < transform.position.y && (goalPlatformPos - nextManager.GetPosFloor(2)).magnitude < 0.3f)
        {
            NewPosition();
        }

        if (!CurrentFloorsPosY(goalPlatformPos.y))
        {
            return;
        }

        CurrentFloor().StartDestroyMe();

        _currentFloorIndex++;
        UpColumnToNextFloor();
    }