Ejemplo n.º 1
0
    void Start()
    {
        UpdateTime = 0;
        _card      = CardsGameObjects.DetachHandleWithHand(true);

        _hand        = Hand.CreateHand(true);
        _canbeinhand = _card.AddComponent <CanBeInHand>();

        _hand.Add(_canbeinhand);
    }
Ejemplo n.º 2
0
    void Start()
    {
        UpdateTime   = 0;
        _card_stay   = CardsGameObjects.DetachHandleWithHand(true);
        _card_remove = CardsGameObjects.DetachHandleWithHand(true);

        _card_stay.transform.position = VisualManager.Instance.HandPositioning.PositionPlayer(0, 2);
        _card_stay.transform.rotation = VisualManager.Instance.HandPositioning.RotationPlayer(0, 2);

        _card_remove.transform.position = VisualManager.Instance.HandPositioning.PositionPlayer(1, 2);
        _card_remove.transform.rotation = VisualManager.Instance.HandPositioning.RotationPlayer(1, 2);

        _hand = Hand.CreateHand(true);

        _hand.Add(_card_stay.GetComponent <CanBeInHand>());
        _hand.Add(_card_remove.GetComponent <CanBeInHand>());

        _hand.Remove(_card_remove.GetComponent <CanBeInHand>());
    }