Exemple #1
0
    void Start()
    {
        isNearest = false;
        haloComp  = (Behaviour)GetComponent("Halo");
        hasObj    = false;
        topObj    = this.gameObject.transform.Find("grab").gameObject;

        if (this.gameObject.name.Contains("cut"))
        {
            type = furnitureType.cortar;
        }
        else
        {
            if (this.gameObject.name.Contains("kit"))
            {
                type = furnitureType.cocina;
            }
            else if (this.gameObject.name.Contains("garbage"))
            {
                type = furnitureType.basura;
            }
            else if (this.gameObject.name.Contains("station"))
            {
                type = furnitureType.entrega;
            }
            else
            {
                type = furnitureType.normal;
            }
        }
    }
    void Start()
    {
        type         = furnitureType.cortar;
        generalClass = GetComponent <furnitureSelector>();


        //iniciamos con canvas desactivado.

        variable.gameObject.SetActive(false);
    }
    void Start()
    {
        type = furnitureType.cocina;

        generalClass = GetComponent <furnitureSelector>();
        topObj       = this.gameObject.transform.Find("grab").transform.GetChild(0).gameObject;
        ollaScript   = topObj.GetComponent <olla_behaviour>();
        system       = GetComponent <ParticleSystem>();
        //iniciamos con canvas desactivado.

        variable.gameObject.SetActive(false);
        tiempo_quemar = ollaScript.offsetQuemado;
        tiempo_cocina = ollaScript.duracionCocinar;

        fireSystem = fireObj.GetComponent <ParticleSystem>();
    }