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