Example #1
0
 void Awake()
 {
     _card = CardsGameObjects.DetachHandleWithCollisionBox();
     _card.AddComponent <CanBeDetached>();
     _card.AddComponent <CanBeMoved>();
     _card.AddComponent <CanBeMousedOver>();
     _card.AddComponent <CanBeInHand>().IsInHand = true;
     _highlight = _card.AddComponent <CanBeHighlighted>();
 }
    void Awake()
    {
        _card       = CardsGameObjects.DetachHandleWithCollisionBox();
        _mouse_over = _card.AddComponent <CanBeMousedOver>();

        Vector3 right_of_screen = new Vector3(Screen.width * 0.75f, Screen.height * 0.5f, 0.0f);

        UnityBridge.Instance.OverrideMousePosition(true, right_of_screen);

        UpdateCount = 0;
    }