Exemplo n.º 1
0
    // Update is called once per frame
    //void Update()
    //{
    //    if (grabbable.isGrabbed == true)
    //    {
    //        if (join == true)
    //        {
    //            joinMatch.JoinMatch();
    //            join = false;
    //        }
    //    }

    //}
    private void OnTriggerEnter(Collider other)
    {
        if (other.tag == "Player")
        {
            if (join == true)
            {
                joinMatch.JoinMatch();
                join = false;
            }
        }
    }
Exemplo n.º 2
0
 // Update is called once per frame
 void Update()
 {
     if (grabbable.isGrabbed == true)
     {
         if (join == true)
         {
             joinMatch.JoinMatch();
             join = false;
         }
     }
 }