示例#1
0
 public void Flush()
 {
     commandString         = new char[] { 'n', 'n', 'n', 'n', 'n', 'n', 'n', 'n', 'n', 'n' };
     commandSize           = 0;
     commandDirection      = 0;
     lastDirectionalRegion = CommandRegion.None;
     LastInput             = DirectionalAnalogEvent.Empty();
 }
示例#2
0
    protected override void Awake()
    {
        base.Awake();
        NewInput      = DirectionalAnalogEvent.Empty();
        PreviousInput = DirectionalAnalogEvent.Empty();

        cmdIntrp = GetComponent <CommandInterpreter> ();
    }
示例#3
0
            void Awake()
            {
                lastInput = DirectionalAnalogEvent.Empty();

                interpretDict.Add(TapKey, ActionTypes.Tap);
                interpretDict.Add(CounterKey, ActionTypes.Counter);
                interpretDict.Add(JabKey, ActionTypes.Jab);
                interpretDict.Add(PullKey, ActionTypes.Pull);
                interpretDict.Add(SwipeKey, ActionTypes.Swipe);
                interpretDict.Add(QuarterSweepKey, ActionTypes.QuarterSweep);
                interpretDict.Add(HalfSweepKey, ActionTypes.HalfSweep);
                interpretDict.Add(FullSweepKey, ActionTypes.FullSweep);
                interpretDict.Add(QuarterAngleKey, ActionTypes.QuarterAngle);
                interpretDict.Add(HalfAngleKey, ActionTypes.HalfAngle);
                interpretDict.Add(FullAngleKey, ActionTypes.FullAngle);
                interpretDict.Add(QuarterLoopKey, ActionTypes.QuarterLoop);
                interpretDict.Add(HalfLoopKey, ActionTypes.HalfLoop);
                interpretDict.Add(FullLoopKey, ActionTypes.FullLoop);
                interpretDict.Add(FigureLKey, ActionTypes.FigureL);
                interpretDict.Add(FigureZKey, ActionTypes.FigureZ);
            }
示例#4
0
 //Receives new input up for the manager
 void OnInputUp()
 {
     NewInput = DirectionalAnalogEvent.Empty();
 }