Beispiel #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;
    }
Beispiel #3
0
 void Start()
 {
     photoAnimController = FindObjectOfType <PhotoAnimController>();
     photoAnimController.Init();
 }