getBusy() публичный Метод

public getBusy ( ) : bool
Результат bool
Пример #1
0
    void OnTriggerEnter2D(Collider2D collider2d)
    {
        if (collider2d.tag == "Seat" && !leaving)
        {
            seat1 = collider2d.gameObject.GetComponent <seat>();
            if (!seat1.getBusy())
            {
                foundSeat = true;
//                mySeatFlag = 1;
                //print("setting seat to busy");
                seat1.setBusy();
            }
        }

        if (myOrder.Contains(collider2d.tag))
        {
            item      = collider2d;
            giveOrder = true;
        }
    }
Пример #2
0
    void OnTriggerEnter2D(Collider2D collider2d)
    {
        if (collider2d.tag == "Seat" && !leaving)
        {
            seat1 = collider2d.gameObject.GetComponent<seat>();
            if (!seat1.getBusy())
            {
                foundSeat = true;
        //                mySeatFlag = 1;
                //print("setting seat to busy");
                seat1.setBusy();
            }
        }

        if (myOrder.Contains(collider2d.tag))
        {
            item = collider2d;
            giveOrder = true;
        }
    }