Esempio n. 1
0
    // Use this for initialization

    void OnParticleCollision(GameObject other)
    {
        BLEVE_Heating BH = other.transform.GetComponent <BLEVE_Heating>();

        if (BH != null)
        {
            BH.AddHeat(m_fireHeat);
        }
    }
Esempio n. 2
0
    // Update is called once per frame
    void Update()
    {
        RaycastHit hit;
        Ray        ray = Camera.main.ScreenPointToRay(Input.mousePosition);

        if (Physics.Raycast(ray, out hit) && Input.GetMouseButton(0))
        {
            BLEVE_Heating objectHit = hit.transform.GetComponent <BLEVE_Heating>();
            if (objectHit != null)
            {
                objectHit.ReduceHeat(m_waterTemp);
            }
        }
    }