Пример #1
0
    // Use this for initialization
    void Start()
    {
        m_Laser = Instantiate(m_LaserPrefab, Vector3.zero, transform.rotation) as GameObject;
        m_Laser.transform.parent        = transform.GetChild(0);
        m_Laser.transform.localPosition = new Vector3(0, 0, -1.0f);
        m_Laser.name = "EyeLaser";

        eyeClosed = this.transform.Find("EyeClosed").gameObject;
        colorLerp = this.GetComponent <ColorLerp>();

        attackPattern         = this.GetComponent <EnragedAttackPattern> ();
        attackPattern.enabled = false;
    }
Пример #2
0
    // Use this for initialization
    void Start()
    {
        m_Laser = Instantiate(m_LaserPrefab, Vector3.zero, transform.rotation) as GameObject;
        m_Laser.transform.parent = transform.GetChild(0);
        m_Laser.transform.localPosition = new Vector3(0, 0, -1.0f);
        m_Laser.name = "EyeLaser";

        eyeClosed = this.transform.Find("EyeClosed").gameObject;
        colorLerp = this.GetComponent<ColorLerp>();

        attackPattern = this.GetComponent<EnragedAttackPattern> ();
        attackPattern.enabled = false;
    }