public void AddEvent (InputEvent inputEvent)
		{
			if(stateEvents==null) stateEvents=new Dictionary<int, InputEvent>();

			if (inputEvent.stateNameHash == 0)
								throw new Exception ("Try to add event on 0-null state");

			if (!stateEvents.ContainsKey(inputEvent.stateNameHash))
			{
				stateEvents[inputEvent.stateNameHash] = inputEvent;
				
			}
		}
        internal InputEvent GetEvent(int stateNameHash)
        {
			if(stateEvents==null) stateEvents=new Dictionary<int, InputEvent>();

            if (!stateEvents.ContainsKey(stateNameHash))
            {
				stateEvents[stateNameHash] = new InputEvent(stateNameHash);

            }


            return stateEvents[stateNameHash];
        }