Ejemplo n.º 1
0
    public void UpdatePsychadelicLevel(float sinRotMagnitude, float[] weightedRadians, float magnitude, float angle)
    {
        innerPoints = pointManager.SpawnInnerPoints(innerPoints.Count, levelCenter, weightedRadians);
        pointManager.RotatePoints(innerPoints, -Mathf.Sin(angle) * magnitude * sinRotMagnitude + previousRotation);
        outerPoints = pointManager.SpawnOuterPoints(innerPoints);

        playerManager.UpdatePlayerPositions();
        playerManager.PlayersLookAtPoint(levelCenter);
        arqdutManager.UpdateArqdutPositions(innerPoints, levelCenter);

        DrawMesh(innerPoints.Count);
    }
Ejemplo n.º 2
0
    public void LerpLevel()
    {
        LerpPointsSmaller(lerpPlayerNumber, lerpManager);

        if (_inGameManager.lerpedAmount >= 1) // Finished lerping
        {
            FinishLerping();
        }

        playerManager.PlayersLookAtPoint(_inGameManager.levelCenter);
        playerManager.UpdatePlayerPositions();
        arqdutManager.UpdateArqdutPositions(LevelManager.innerPoints, _inGameManager.levelCenter);
        _inGameManager.DrawMesh(ChooseControls.playerStates.Count(i => i.Value != PlayerState.Deactivated) + Convert.ToByte(InGameManager.shouldLerpSmaller));

        InGameManager.shouldSetIndices = false;
    }