示例#1
0
    void Start()
    {
        webcamTool.Init();
        photoTool.Init();
        photoAnimController.Init();

        rImg_takenPhoto.gameObject.SetActive(false);
        canvas_keying.SetActive(false);
    }
    void Start()
    {
        // Create States
        chooseBGState  = new ChooseBGState(gameStateController, timeToGoBackToMainMenu);
        takePhotoState = new TakePhotoState(gameStateController, timeToGoBackToMainMenu);
        confirmState   = new ConfirmState(gameStateController, timeToGoBackToMainMenu);
        resultState    = new ResultState(gameStateController, timeToGoBackToMainMenu);


        // Controllers
        webcamTool.Init();
        photoTool.Init();
        photoAnimController.Init();
        uiController.Init();

        ResetGame();

        // Set the first gameState
        GoToState(Extension.GameState.ChooseBGState);

        isGameReady = true;
    }
示例#3
0
 void Start()
 {
     photoTool = FindObjectOfType <PhotoTool>();
     photoTool.Init(startX, startY, width, height);
 }