Ejemplo n.º 1
0
    /// <summary>
    /// 設定指令索引值
    /// </summary>
    /// <param name="seatIndex"></param>
    public void SetSeatIndex(int seatIndex)
    {
        this.seatIndex = seatIndex;

        //座位索引
        seatIndexText.text = SeatIndexHelper.SeatIndexToKeyCode(seatIndex);
        gameObject.name    = seatIndexText.text;
    }
Ejemplo n.º 2
0
    public void Init(int index, Seat s)
    {
        this.index = index;
        seat       = s;
        string i = SeatIndexHelper.SeatIndexToKeyCode(index);

        seatIndexText.text = i;
        transform.position = seat.seatPos;
        transform.rotation = Quaternion.Euler(seat.rotation);
    }
Ejemplo n.º 3
0
 private void Start()
 {
     seatingPlanner  = FindObjectOfType <SeatingPlanner>();
     gameObject.name = SeatIndexHelper.SeatIndexToKeyCode(index);
 }