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(); }
protected override void Awake() { base.Awake(); NewInput = DirectionalAnalogEvent.Empty(); PreviousInput = DirectionalAnalogEvent.Empty(); cmdIntrp = GetComponent <CommandInterpreter> (); }
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); }
//Receives new input up for the manager void OnInputUp() { NewInput = DirectionalAnalogEvent.Empty(); }