Example #1
0
 private void Awake()
 {
     gameSuccessController = uiController.GetComponent <GameSuccessController>();
     gameProgress          = new GameProgress();
     cubes = new List <GameObject>();
     spawnObjectsOnPlane = GameObject.FindObjectOfType <SpawnObjectsOnPlane>();
 }
 void Awake()
 {
     gameSuccessController = uiController.GetComponent <GameSuccessController>();
     gameProgress          = new GameProgress();
     spawnObjectsOnPlane   = GameObject.FindObjectOfType <SpawnObjectsOnPlane> ();
     gameCompleted         = false;
     spawnedlevels         = new GameObject[3];
     levelSuccessCanvas.SetActive(false);
 }
 private void Awake()
 {
     gameSuccessController = uiController.GetComponent <GameSuccessController>();
     gameProgress          = new GameProgress();
     gameTimer             = GameObject.FindObjectOfType <GameTimer>();
     imageTracking         = GameObject.FindObjectOfType <ImageTrackingCombination>();
     bowlAddedCorrectly    = new bool[4];
     whiskAddedCorrectly   = new bool[2];
     puzzlesCompleted      = new bool[3];
     FindObjectOfType <AudioManager>().Play("music");
 }
Example #4
0
 void Start()
 {
     arHelpCanvas = GameObject.Find("UserInterface").gameObject.transform.Find("ARHelpCanvasTouch").gameObject;
     // set points to earn points based on level
     touchesCounter        = activeLevel * 15;
     uiController          = GameObject.Find("UserInterface").gameObject.transform.Find("UIControllerGame").gameObject;
     gameSuccessController = uiController.GetComponent <GameSuccessController>();
     swipeAnimator         = arHelpCanvas.transform.Find("Swipe").gameObject.GetComponent <Animator>();
     swipeAnimator.SetBool("ShowInfo", true);
     finished = false;
     rb       = GetComponent <Rigidbody>();
     TouchCount();
     FindObjectOfType <AudioManager>().Play("music");
     FindObjectOfType <AudioManager>().Play("sounds");
 }