// ------------------------------------------------------------------------------
    // FUNCTIONS
    // ------------------------------------------------------------------------------

    // ------------------------------------------------------------------------------
    // Function Name: 
    // Return types: 
    // Argument types: 
    // Author: 
    // Date: 
    // ------------------------------------------------------------------------------
    // Purpose: 
    // ------------------------------------------------------------------------------
    private void Start()
    {
        cam = FindObjectOfType < ENM_Camera >();
        exTemp = GameObject.FindGameObjectWithTag(UNA_Tags.XTempEnemy).GetComponent<ENM_ExTemp>();
        bLight = GameObject.Find("BoxLight");
        bLight.GetComponent<Renderer>().material.color = on;

    }
示例#2
0
    // ------------------------------------------------------------------------------
    // FUNCTIONS
    // ------------------------------------------------------------------------------
    // ------------------------------------------------------------------------------
    // Function Name: Start
    // Return types: 
    // Argument types: 
    // Author: 
    // Date: 
    // ------------------------------------------------------------------------------
    // Purpose: 
    // ------------------------------------------------------------------------------

    void Start()
    {
        suspicion = false;
        reset = false;
        triggered = false;

        powered = true;

        cameraActivatedTimer = 0;

        Base = GameObject.Find("Base");
        target = GameObject.FindWithTag(UNA_Tags.player).transform;

        enm_extemp = GameObject.FindGameObjectWithTag(UNA_Tags.XTempEnemy).GetComponent<ENM_ExTemp>();
    }