Example #1
0
    /// <summary>
    /// This function is to be used just for non-adaptive game sessions.
    /// It is used to record a thrown can
    /// </summary>
    /// <param name="x_value">Detected x-value</param>
    /// <param name="y_value">Detected y-value</param>
    /// <param name="tot">Fsr value detected</param>
    /// <param name="force">Detected force</param>
    public void AddStep(float x_value, float y_value, int tot, float force)
    {
        Utility.Data d = new Utility.Data();

        d.endPoint = new Vector2(x_value, y_value);
        d.tot      = tot;
        d.force    = force;
        d.hasHit   = false;

        lock (semaphore)
        {
            steps.Add(d);
        }
    }
Example #2
0
    public void SetDuckHit(int canId)
    {
        Utility.Data d = new Utility.Data();

        Utility.Data data;
        lock (semaphore)
        {
            data = steps[canId];
        }

        d        = data;
        d.hasHit = true;

        lock (semaphore)
        {
            steps[canId] = d;
        }
    }