Example #1
0
            public void Awake()
            {
                inputBuffer = GetComponent <InputBuffer>();

                inputActions = new BasicActions();

                inputActions.GamePlay.Move.performed    += OnMove;
                inputActions.GamePlay.ButtonA.performed += OnButtonA;
                inputActions.GamePlay.ButtonB.performed += OnButtonB;
                inputActions.GamePlay.ButtonC.performed += OnButtonC;
                inputActions.GamePlay.ButtonD.performed += OnButtonD;
                inputActions.GamePlay.ButtonS.performed += OnButtonS;

                FrameEnforcer frame = GameObject.FindGameObjectWithTag("rspTime").GetComponent <FrameEnforcer>();

                frame.AddUpdate((int)FramePriority.InputBuffer, new Action <int>(FrameUpdate));
            }
Example #2
0
 public void Start()
 {
     frame = gameObject.GetComponent <FrameEnforcer>();
     frame.AddUpdate((int)FramePriority.UpdateInput, new Action <int>(ProcessEventsManually));
 }