public void SetState() { StatePlayer.SetState(character, (StatePlayer)System.Activator.CreateInstance(System.Type.GetType(state))); }