void Awake() { // Clean up attackListenerList.Clear(); healthChangeListenerList.Clear(); powerUpChangeListenerList.Clear(); inputMap = InputMap.getInputMap(); inputMap.ClearDictionary(); // Adding input maps (delegates) inputMap.Add(MultiPlatformInputs.UpArrow, JumpSwipe); inputMap.Add(MultiPlatformInputs.SwipeUp, JumpSwipe); inputMap.Add(MultiPlatformInputs.RightArrow, Pierce); inputMap.Add(MultiPlatformInputs.SwipeRight, Pierce); inputMap.Add(MultiPlatformInputs.Shift, OverHeadSwipe); inputMap.Add(MultiPlatformInputs.SwipeRightDown, OverHeadSwipe); inputMap.Add(MultiPlatformInputs.SwipeRightDown, LowSwipe); inputMap.Add(MultiPlatformInputs.DownArrow, LowSwipe); inputMap.Add(MultiPlatformInputs.SwipeDown, LowSwipe); inputMap.Add(MultiPlatformInputs.SpaceBar, JumpStomp); inputMap.Add(MultiPlatformInputs.SwipeUpRightDown, JumpStomp); inputMap.Add(MultiPlatformInputs.Shake, GoBerserk); inputMap.Add(MultiPlatformInputs.Return, GoBerserk); groundCheck = transform.Find("GroundCheck"); anim = GetComponent <Animator> (); }
void Awake() { // Clean up attackListenerList.Clear (); healthChangeListenerList.Clear (); powerUpChangeListenerList.Clear (); inputMap = InputMap.getInputMap(); inputMap.ClearDictionary (); // Adding input maps (delegates) inputMap.Add(MultiPlatformInputs.UpArrow, JumpSwipe); inputMap.Add(MultiPlatformInputs.SwipeUp, JumpSwipe); inputMap.Add (MultiPlatformInputs.RightArrow, Pierce); inputMap.Add (MultiPlatformInputs.SwipeRight, Pierce); inputMap.Add (MultiPlatformInputs.Shift, OverHeadSwipe); inputMap.Add (MultiPlatformInputs.SwipeRightDown, OverHeadSwipe); inputMap.Add (MultiPlatformInputs.SwipeRightDown, LowSwipe); inputMap.Add (MultiPlatformInputs.DownArrow, LowSwipe); inputMap.Add (MultiPlatformInputs.SwipeDown, LowSwipe); inputMap.Add (MultiPlatformInputs.SpaceBar, JumpStomp); inputMap.Add (MultiPlatformInputs.SwipeUpRightDown, JumpStomp); inputMap.Add (MultiPlatformInputs.Shake, GoBerserk); inputMap.Add (MultiPlatformInputs.Return, GoBerserk); groundCheck = transform.Find ("GroundCheck"); anim = GetComponent<Animator> (); }