Example #1
0
    public void ChangeBody()
    {
        int bodyHeight = Algorithms.AlturaGen();
        int bodyWeight = Algorithms.AlturaGen();

        if (bodyHeight == Algorithms.HIGH)
        {
            height = new Vector3(0, 2f, 0);
        }
        else if (bodyHeight == Algorithms.LOW)
        {
            height = new Vector3(0, -2f, 0);
        }

        if (bodyWeight == Algorithms.HIGH)
        {
            wheight = new Vector3(2f, 0, 0);
        }
        else if (bodyWeight == Algorithms.LOW)
        {
            wheight = new Vector3(-2f, 0);
        }
    }