Exemple #1
0
    public static void Move(Json json)
    {
        Debug.Log("FootMgr Move call");
        float left  = json.positionLeft - 5.0f;
        float right = json.positionRight - 5.0f;
        float width = PlayMgr.width;

        footLeft.setX(128.0f * (left - 2.0f - 0.5f) * width / 1024.0f);
        footRight.setX(128.0f * (right - 2.0f - 0.5f) * width / 1024.0f);
    }