seat.getBusy C# (CSharp) Method

getBusy() public method

public getBusy ( ) : bool
return bool
    public bool getBusy()
    {
        return busy;
    }

Usage Example

Beispiel #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;
        }
    }
All Usage Examples Of seat::getBusy