Ejemplo n.º 1
0
 /// <summary>
 /// It's pretty simple here
 /// When we enable, we register our button in the input system
 /// </summary>
 private void OnEnable()
 {
     _virtualButton = _virtualButton ?? new VirtualButton(ButtonName);
     CnInputManager.RegisterVirtualButton(_virtualButton);
     img             = GetComponent <Image>();
     unpressedSprite = img.sprite;
 }
Ejemplo n.º 2
0
 /// <summary>
 /// It's pretty simple here
 /// When we enable, we register our button in the input system
 /// </summary>
 private void OnEnable()
 {
     _virtualButton = _virtualButton ?? new VirtualButton(ButtonName);
     CnInputManager.RegisterVirtualButton(_virtualButton);
 }