/// <summary> /// インスタンス生成直後に実行される処理 /// </summary> protected override void Awake() { base.Awake(); _inputModule = GetComponent <IUIInputModule>(); _keyConfig = GetComponent <IKeyConfig>(); }
private static string GetHeaderSegment(IKeyConfig key) { if (key.Algorithm.IsHmac()) { return new JsonWebTokenHeader { Algorithm = key.Algorithm } }
/// <summary> /// コンストラクタ /// </summary> /// <param name="keyNum">キー設定に含むキーの数</param> /// <param name="keyConfig">キー設定のインターフェイス</param> public KeyGroup(int keyNum, IKeyConfig keyConfig) { _alters = new KeyAlterer[keyConfig.Count]; _fields = new List <IKeyFieldAccesser>(keyNum); _keys = new Dictionary <int, KeyCode>(keyNum); IKeyMap map; for (int i = 1; i < _alters.Length; i++) { map = keyConfig.GetKeyMap(i); _alters[i] = new KeyAlterer(map.Count, _keys); } }
/// <summary> /// 初回のみ実行される更新処理。 /// 全てのAwake関数を実行した後に呼ばれる /// </summary> void Start() { _uiConfig = InputManager.Instance.KeyConfig; _plConfig = Player.PlayerManager.Instance.KeyConfig; _uiGroup = new KeyGroup(UIKeyId.Num, _uiConfig); _plGroup = new KeyGroup(PKeyId.Num, _plConfig); GetSaveData(); // 初期処理が完了したことを通知 initialized(); SetKeyFromSaveData(); }
/// <summary> /// インスタンス生成直後に実行される処理 /// </summary> void Awake() { _keyConfig = GetComponent <IKeyConfig>(); _events = new Dictionary <int, EventSender>(_inputActionCount); }
public ConfigFileSymmetricKeyProvider(IKeyConfig issuer, IConsumerConfig consumer) { _issuer = issuer; _consumer = consumer; }
public TokenGenerator(IJwtConfiguration tokenConfiguration, IKeyConfig keyConfig) { _tokenConfiguration = tokenConfiguration ?? throw new ArgumentNullException(nameof(tokenConfiguration)); _keyConfig = keyConfig ?? throw new ArgumentNullException(nameof(keyConfig)); }
public CngKeyProvider(IKeyConfig keyConfig) { _keyConfig = keyConfig; }
public KeyManager(IKeyConfig config) { _keyHandlers = new Dictionary <Keyboard.Key, ApplicationAction>(config.KeyMap); _actionMap = new Dictionary <ApplicationActionType, Action>(); }
/// <summary> /// インスタンス生成直後に実行される処理 /// </summary> protected override void Awake() { base.Awake(); _keyConfig = GetComponent <PlayerKeyConfig>(); }