Exemplo n.º 1
0
        public Entity AddSelectionListener(ISelectListener newListener)
        {
            var component = CreateComponent <SelectionListenerComponent>(CoreComponentIds.SelectionListener);

            component.listener = newListener;
            return(AddComponent(CoreComponentIds.SelectionListener, component));
        }
Exemplo n.º 2
0
 private void Awake()
 {
     isSelect        = false;
     selectListener  = GameObject.Find("GameController").GetComponent <GameController>();
     _spriteRenderer = GetComponent <SpriteRenderer>();
     _outline        = transform.Find("outline").gameObject;
 }
Exemplo n.º 3
0
        public Entity ReplaceSelectionListener(ISelectListener newListener)
        {
            var component = CreateComponent <SelectionListenerComponent>(CoreComponentIds.SelectionListener);

            component.listener = newListener;
            ReplaceComponent(CoreComponentIds.SelectionListener, component);
            return(this);
        }