void Awake()
    {
        miniGameManager = FindObjectOfType <BaseMiniGameManager>();

        //Getting the fixed bounds for the panning camera
        extents = CameraExtension.OrthographicBounds(Camera.main).extents;
    }
    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;
        }
    }
Exemplo n.º 3
0
 void Awake()
 {
     cameraSizeOffsetX = CameraExtension.OrthographicBounds(Camera.main.GetComponent <Camera>()).extents.x;
     cameraSizeOffsetY = CameraExtension.OrthographicBounds(Camera.main.GetComponent <Camera>()).extents.y;
 }