public void Awake()
 {
     button     = GetComponent <Button>();
     dispatcher = Service.Get <EventDispatcher>();
     if (SpriteSelector == null)
     {
         SpriteSelector = GetComponent <SpriteSelector>();
     }
 }
Beispiel #2
0
 public void Awake()
 {
     button        = GetComponent <Button>();
     dispatcher    = Service.Get <EventDispatcher>();
     lastClickTime = -1f;
     curIndex      = 0;
     if (SpriteSelector == null)
     {
         SpriteSelector = GetComponent <SpriteSelector>();
     }
 }
Beispiel #3
0
 private void Awake()
 {
     spriteSelector  = GetComponent <SpriteSelector>();
     eventDispatcher = Service.Get <EventDispatcher>();
 }