Exemplo n.º 1
0
    // Use this for initialization
    public DebugInputSystem()
    {
        Debug.Log("<b><color=red>------------ DEBUG INPUT ENABLED ---------------</color></b>");

        inputCentre = Vector2.zero;
        inputRadius = 75f;

        trickQueue = new TrickQueue(90);
        ui         = new UIDebugInput();
    }
Exemplo n.º 2
0
    // Use this for initialization
    public MobileInputSystem()
    {
        //parsedInput = new Queue<int>();
        //for (int i = 0; i < 90; i++) parsedInput.Enqueue(0); // fill queue with 0
        inputCentre = Vector2.zero;
        inputRadius = 75f;

        trickQueue = new TrickQueue(90);
        ui         = new UIMobileInput();
    }
Exemplo n.º 3
0
    public List <Trick> GetTricks(TrickQueue parsedInput)
    {
        foreach (Trick trick in trickPool.Values)
        {
            string recordedTrick = parsedInput.FindTrick(trick);

            if (recordedTrick != "")
            {
                if (trick.Available)
                {
                    Debug.Log("Adding " + trick + " to buffer...");
                    trick.Evaluate(recordedTrick);
                    trickBuffer.Add(trick);
                    break;
                }
            }
        }

        return(trickBuffer);
    }
 // Use this for initialization
 public PS4InputSystem()
 {
     trickQueue = new TrickQueue(90);
     ui         = new UIPS4Input();
 }