/// <summary>
 /// Initializes the specified security service.
 /// </summary>
 /// <param name="securityService">The security service.</param>
 public override void Initialize(SecuritySystem securityService)
 {
     base.Initialize(securityService);
     ClearCurrent();
     InitializeKeyboard();
     _clearCurrentButton.onClick.AddListener(ClearCurrent);
 }
 public virtual void Initialize(SecuritySystem securityService)
 {
     _securitySystem = securityService;
     Unlocked        = false;
     _tryUnlock.onClick.AddListener(ComputeLockCondition);
     _unlockable = true;
     Disable();
 }
Esempio n. 3
0
 /// <summary>
 /// Initializes the specified security service.
 /// </summary>
 /// <param name="securityService">The security service.</param>
 public override void Initialize(SecuritySystem securityService)
 {
     _one.onClick.AddListener(() => AddDigit(1));
     _two.onClick.AddListener(() => AddDigit(2));
     _three.onClick.AddListener(() => AddDigit(3));
     _four.onClick.AddListener(() => AddDigit(4));
     _five.onClick.AddListener(() => AddDigit(5));
     _six.onClick.AddListener(() => AddDigit(6));
     _seven.onClick.AddListener(() => AddDigit(7));
     _eight.onClick.AddListener(() => AddDigit(8));
     _nine.onClick.AddListener(() => AddDigit(9));
     _del.onClick.AddListener(RemoveLast);
     _zero.onClick.AddListener(() => AddDigit(0));
     _clear.onClick.AddListener(ClearCurrent);
     base.Initialize(securityService);
 }
Esempio n. 4
0
 /// <summary>
 /// Initializes this instance.
 /// </summary>
 public override void Initialize(SecuritySystem securitySystem)
 {
     base.Initialize(securitySystem);
     for (int i = 0; i < _nexts.Count; i++)
     {
         int p = i;
         _nexts[i].onClick.AddListener(() => ToNextColor(p));
     }
     for (int i = 0; i < _previous.Count; i++)
     {
         int p = i;
         _previous[i].onClick.AddListener(() => ToPreviousColor(p));
     }
     for (int i = 0; i < _holders.Count; i++)
     {
         SetColor(i, SpinnerColor.Red);
     }
 }
 public override void Initialize(SecuritySystem securityService)
 {
     base.Initialize(securityService);
 }