Ejemplo n.º 1
0
    void SpawnTouchHand(Touch t)
    {
        NewHand hand = Instantiate(m_HandPrefab);

        hand.m_FingerID = t.fingerId;
        // Debug.Log("Spawning hand. FINGER ID: " + t.fingerId);
    }
Ejemplo n.º 2
0
 public bool HitMe(Deck deck)
 {
     NewHand.Add(deck.DealOne());
     if (HandValue >= 21)
     {
         return(false);
     }
     else
     {
         return(true);
     }
 }
Ejemplo n.º 3
0
    void SpawnHand()
    {
        NewHand hand = Instantiate(m_HandPrefab);

        #if UNITY_EDITOR
        hand.useMouse = true;
        #endif

        // if (NewGameManager.GetInstance().spawnBallsByTouchCount)
        // {
        //     if (NewBallManager._ballCount < Input.touchCount)
        //     {
        //         EventManager.TriggerEvent("SpawnBall");
        //     }
        // }
    }
Ejemplo n.º 4
0
    // bool EnableLine()
    // {
    //     return m_Ball.m_IsHeld || m_gotThrown || m_Ball.m_BallThrown;
    // }

    public void SetHand(NewHand hand)
    {
        m_Hand = hand;
        m_LineStartPosition = transform.position;
    }
Ejemplo n.º 5
0
 public bool GetHand(Deck deck)
 {
     NewHand.Add(deck.DealOne());
     NewHand.Add(deck.DealOne());
     return(true);
 }