Example #1
0
 public void PushButtonLocker()
 {
     currentWallNo = WALL_POS.LOCKER;
     wall.transform.localPosition = new Vector3(-4000.0f, 0.0f, 0.0f);
     //zoomしたら、横のボタンは不要なので消しておきたい。
     buttons[0].SetActive(false);
     buttons[1].SetActive(false);
 }
Example #2
0
    public void PushButtonRight()
    {
        currentWallNo++;

        if (currentWallNo > WALL_POS.LEFT)
        {
            currentWallNo = WALL_POS.FRONT;
        }

        DisplayWall();
    }
Example #3
0
    public void PushButtonLeft()
    {
        currentWallNo--;

        if (currentWallNo < WALL_POS.FRONT)
        {
            currentWallNo = WALL_POS.LEFT;
        }

        DisplayWall();
    }
Example #4
0
    public void PushButtonBack()
    {
        //backボタンを押したら、Lockerのある画面に戻りたい。
        if (currentWallNo == WALL_POS.LOCKER)
        {
            currentWallNo = WALL_POS.LEFT;

            wall.transform.localPosition = new Vector3(-3000.0f, 0.0f, 0.0f);
            //backボタンを押して通常の画面に戻ったら右、左のボタンを戻したい。
            buttons[0].SetActive(true);
            buttons[1].SetActive(true);
        }
    }
Example #5
0
 // Start is called before the first frame update
 void Start()
 {
     currentWallNo = WALL_POS.FRONT;
 }