Example #1
0
    void Start()
    {
        pass = GameObject.Find("ImagePase").GetComponent <Animator>();
        if (pass == null)
        {
            Debug.LogError("404: anim in PlayerAnimKitchen");
        }

        rico = GameObject.Find("rico").GetComponent <Rico>();
        if (rico == null)
        {
            Debug.LogError("404: rico in PlatoBeh");
        }

        ricoEmpty = GameObject.Find("RicoEmpty");
        if (ricoEmpty == null)
        {
            Debug.LogError("404: ricoEmpty in PlatoBeh");
        }

        pScript = GameObject.Find("Prota_01").GetComponent <PlayerAnimKitchen>();;
        if (ricoEmpty == null)
        {
            Debug.LogError("404: player in PlatoBeh");
        }

        kitchen = GameObject.Find("kitchen").GetComponent <Kitchen>();
        if (kitchen == null)
        {
            Debug.LogError("404: kitchen in PlatoBeh");
        }
    }
Example #2
0
    void Start()
    {
        anim = GameObject.Find("Prota_01").GetComponent <Animator>();
        if (anim == null)
        {
            Debug.LogError("404: anim in PlatoBeh");
        }

        player = GameObject.Find("Prota_01");

        pScript = player.GetComponent <PlayerAnimKitchen>();
        if (pScript == null)
        {
            Debug.LogError("404: pAK in PlatoBeh");
        }

        rico = GameObject.Find("rico").GetComponent <Rico>();
        if (rico == null)
        {
            Debug.LogError("404: Rico in PlatoBeh");
        }

        pfPlato = GameObject.Find("kitchen").GetComponent <Kitchen>().pfplato;
        if (pfPlato == null)
        {
            Debug.LogError("404: pfPlato in PlatoBeh");
        }
    }
Example #3
0
    void Start()
    {
        pass = this.GetComponent <Animator>();
        if (pass == null)
        {
            Debug.Log("404: anim in PaseBeh");
        }

        rico = GameObject.Find("rico").GetComponent <Rico>();
        if (rico == null)
        {
            Debug.Log("404: rico in PaseBeh");
        }

        random = Random.Range(500f, 1000f);
    }
Example #4
0
    void Start()
    {
        prota = GameObject.Find("Prota_01");
        prota.AddComponent <PlayerCtrl>();
        prota.AddComponent <PlayerAnimKitchen>();
        protaCube = GameObject.Find("platoEmpty");
        protaCube.AddComponent <PlatoCollider>();

        colliders = Instantiate(colliders, Vector3.zero, Quaternion.identity);

        aL_player = prota.AddComponent <AudioListener>();

        aM = GameObject.Find("AudioManager").GetComponent <AudioManager>();
        aM.Play(1, 2f);

        dialogs = GameObject.Find("Dialogs");
        if (dialogs == null)
        {
            Debug.LogError("404: dialogs_ini in Kitchen");
        }

        dial = dialogs.GetComponent <GestorDeDialogos>();

        setting = GameObject.Find("Main").GetComponent <Settings>();
        if (setting == null)
        {
            Debug.LogError("404: settings in Kitchen");
        }

        crono = GameObject.Find("Crono").GetComponent <Crono>();
        if (crono == null)
        {
            Debug.LogError("404: crono in Kitchen");
        }

        score_UI = GameObject.Find("Score").GetComponent <ScoreUI>();
        if (score_UI == null)
        {
            Debug.LogError("404: scoreUI in Kitchen");
        }

        controles = GameObject.Find("Controls").GetComponent <Canvas>();
        if (controles == null)
        {
            Debug.LogError("404: controls in Kitchen");
        }

        rico = GameObject.Find("rico").GetComponent <Rico>();
        if (rico == null)
        {
            Debug.LogError("404: rico in Kitchen");
        }

        tScore = GameObject.Find("TotalScore").GetComponent <TotalScore>();
        if (tScore == null)
        {
            Debug.LogError("404: tScore in Kitchen");
        }
        tScore.gameObject.SetActive(false);

        score = score_UI._scoreUI;
        score = 0;
        dialogs.SetActive(true);
        controles.renderMode = RenderMode.WorldSpace;

        prota.transform.position = new Vector3(0.18f, 0.0289f, -1.733f);
        prota.transform.rotation = Quaternion.Euler(new Vector3(0f, 180f, 0f));
    }