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; }
void Start() { photoTool = FindObjectOfType <PhotoTool>(); photoTool.Init(startX, startY, width, height); }