void SpawnTouchHand(Touch t)
    {
        NewHand hand = Instantiate(m_HandPrefab);

        hand.m_FingerID = t.fingerId;
        // Debug.Log("Spawning hand. FINGER ID: " + t.fingerId);
    }
Exemple #2
0
 public bool HitMe(Deck deck)
 {
     NewHand.Add(deck.DealOne());
     if (HandValue >= 21)
     {
         return(false);
     }
     else
     {
         return(true);
     }
 }
    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");
        //     }
        // }
    }
Exemple #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;
    }
Exemple #5
0
 public bool GetHand(Deck deck)
 {
     NewHand.Add(deck.DealOne());
     NewHand.Add(deck.DealOne());
     return(true);
 }