Antura.Minigames.Balloons.BalloonsLetterController.ConfigureJointAnchors C# (CSharp) Method

ConfigureJointAnchors() private method

private ConfigureJointAnchors ( ILivingLetterData _data ) : void
_data ILivingLetterData
return void
        private void ConfigureJointAnchors(ILivingLetterData _data)
        {
            Vector3 anchor;

            switch (_data.DataType) {
                case LivingLetterDataType.Letter:
                    anchor = new Vector3(0f, 5.5f, -0.2f);
                    break;
                case LivingLetterDataType.Word:
                    anchor = new Vector3(0.85f, 6.09f, -0.2f);
                    break;
                case LivingLetterDataType.Image:
                    anchor = new Vector3(0f, 5.5f, -0.2f);
                    break;
                default:
                    anchor = new Vector3(0f, 5.5f, -0.2f);
                    break;
            }

            foreach (SpringJoint springJoint in springJoints) {
                springJoint.anchor = anchor;
            }
        }