void Awake()
 {
     modalPanel               = ModalPanel.Instance();
     displayManager           = DisplayManager.Instance();
     inGameUIManagerTimerClue = InGameUIManagerTimerClue.Instance();
     finderController         = FinderController.Instance();
 }
Example #2
0
    //private DisplayManager displayManager;

    void Awake()
    {
        finderController = FinderController.Instance();
        dialog           = GenericDialog.Instance();
        dialogs.Add("Some horrible creatures made me run through the city...");
        dialogs.Add("in the process I lost some objects, can you look for these?...");
        dialogs.Add("I will give you this shiny rock I found");
        //displayManager = DisplayManager.Instance();
        inGameUIManagerTimerClue = InGameUIManagerTimerClue.Instance();
    }
    // Use this for initialization
    void Start()
    {
        Application.targetFrameRate = 30;
        CollectableObjectScript.instance.onCollectablePickedCallback += CollectablePickedUp;

        inGameUIManagerTimerClue = InGameUIManagerTimerClue.Instance();
        objectivesManager        = ObjectiveManager.Instance();

        timeLeft = initialTime;
        score    = 0;

        collectablesLength = collectables.Count;

        //Debug.Log(collectablesLength);
        collectables = OrderCollectables(collectables);

        //Debug.Log(collectablesLength);

        objectivesManager.SetCollectables(collectables);
        objectivesManager.AddObjectives();

        DeactivateCollectables();
        UpdateGUI();
    }