Example #1
0
 void Awake()
 {
     manager = FindObjectOfType <TutorialMiniGameManager>();
     timer   = FindObjectOfType <SoloTimer>();
     score   = new Score();
     Init();
 }
 void Awake()
 {
     pointSystem = GetComponent <TutorialPointSystem>();
     miniManager = GetComponent <TutorialMiniGameManager>();
     cancelPlayerSelection.onClick.AddListener(CancelInteraction);
     doneInteractionButton.onClick.AddListener(FinishInteractionTurn);
     lookAtBoardButton.onClick.AddListener(PanCamera);
 }
 // Use this for initialization
 void Start()
 {
     manager = FindObjectOfType <TutorialMiniGameManager>();
     timer   = FindObjectOfType <SoloTimer>();
     score   = new Score();
     Init();
     //Call our SetCountText function which will update the text with the current value for count.
     SetCountText();
 }
Example #4
0
 void Awake()
 {
     manager = FindObjectOfType <TutorialMiniGameManager>();
     if (manager == null)
     {
         timer = FindObjectOfType <SoloTimer>();
     }
     data = new Score();
 }
Example #5
0
 void Start()
 {
     GetComponentInChildren <SpriteRenderer>().sprite = closedGoalSprite;
     manager = FindObjectOfType <TutorialMiniGameManager>();
     timer   = FindObjectOfType <SoloTimer>();
     if (FindObjectOfType <AddScore>() != null)
     {
         scoreCanvas = FindObjectOfType <AddScore>().gameObject;
         scoreCanvas.SetActive(false);
         score = new Score();
     }
     openDoor = false;
 }
    void Awake()
    {
        tutorialManager = FindObjectOfType <TutorialMiniGameManager>();
        manager         = FindObjectOfType <TutorialTurnSystem>();
        currentColor    = GetComponent <Camera>().backgroundColor;
        //Getting the fixed bounds for the panning camera
        extents           = CameraExtension.OrthographicBounds(Camera.main).extents;
        cameraSizeOffsetX = extents.x;
        cameraSizeOffsetY = extents.y;

        if (playerTransform == null && TutorialTurnSystem.players.Count > 0)
        {
            playerTransform = TutorialTurnSystem.players[0].transform;
        }
    }
 // Use this for initialization
 void Start()
 {
     _gameManager        = FindObjectOfType <MatchingCardManager>();
     MyGameManager.pause = true;
     miniGameManager     = FindObjectOfType <TutorialMiniGameManager>();
     if (miniGameManager != null)
     {
         Spawn(2);
     }
     else
     {
         Easy.onClick.AddListener(delegate { Spawn(1); });
         Medium.onClick.AddListener(delegate { Spawn(2); });
         Hard.onClick.AddListener(delegate { Spawn(3); });
     }
 }