public void LeaveSeat(TileInstanceInfo s)
 {
     if (s.occupied)
     {
         s.occupied = false;
         occupiedSeats--;
     }
 }
Example #2
0
    public void ChangeState(State s)
    {
        //Debug.Log("CHANGING STATE : " + s.ToString());
        if (curState != s)
        {
            State lastState = curState;
            curState = s;
            switch (lastState)
            {
            case State.WAITING:
                SetChoiceMenu(false);
                break;
            }
            switch (curState)
            {
            case State.WALKING_TO_WAIT:
                curLocation = ShelterManager.instance.waitingRoom.TakeSeat();

                moveGoal = ShelterManager.instance.grid.CellToWorld(new Vector3Int(curLocation.x, curLocation.y, 0));
                Debug.Log(moveGoal);
                break;
            }
        }
    }