Ejemplo n.º 1
0
    // Start is called before the first frame update
    void Start()
    {
        inventarioStart = false;
        intro           = true;
        finale          = false;
        player          = GameObject.Find("Player");
        sonda           = GameObject.Find("Sonda_aperta");

        /*inventario = GameObject.Find("Strumenti").GetComponent<InventoryUI>().GetInventory();
         * inventario.Add(GameObject.Find("ARTVA").GetComponent<InteractableClue>().GetItem());
         * inventario.Add(GameObject.Find("Sonda_aperta").GetComponent<InteractableClue>().GetItem());
         * inventario.Add(GameObject.Find("Pala").GetComponent<InteractableClue>().GetItem());*/
        //Timeline = GameObject.Find("Timeline");
        Disperso         = GameObject.Find("Disperso_gameplay");
        Soccorritore1    = GameObject.Find("SoccorritoreNeve1");
        Soccorritore2_CS = GameObject.Find("SoccorritoreNeve2_cutscene");
        Soccorritore2_GP = GameObject.Find("SoccorritoreNeve2_gameplay");
        Buca1            = GameObject.Find("Scavo");
        Buca2            = GameObject.Find("Scavo2");
        Buca3            = GameObject.Find("Scavo3");
        Buca4            = GameObject.Find("Scavo4");
        Buca5            = GameObject.Find("Scavo5");
        audio            = Soccorritore2_GP.GetComponent <AudioSource>();
        info             = GameObject.Find("SceneInfo").GetComponent <SceneInfo>();
        punti            = info.GetPunti();
        foreach (Renderer daDisattivare in Soccorritore2_GP.GetComponentsInChildren <Renderer>())
        {
            daDisattivare.enabled = false;
        }
        foreach (Renderer daDisattivare in Soccorritore2_CS.GetComponentsInChildren <Renderer>())
        {
            daDisattivare.enabled = true;
        }
        //director = Timeline.GetComponent<PlayableDirector>();
        foreach (Renderer daAttivare in Soccorritore1.GetComponentsInChildren <Renderer>())
        {
            daAttivare.enabled = true;
        }
    }