//public float limit = 5;
    //public float yval = 0;



    // Use this for initialization
    void Start()
    {
        wizardControlObj = GameObject.FindGameObjectWithTag("wizardVisionController");
        wvcScr           = wizardControlObj.GetComponent <wizardVisionControlScript> ();
        GetComponent <Renderer> ().material.SetFloat("_DISPVALUE", 10);
        GetComponent <Renderer> ().material.SetFloat("_MOVE", 1);
        timer = Random.Range(0.3f, 0.7f);
    }
Пример #2
0
    // Use this for initialization
    void Start()
    {
        wizardControlObj = GameObject.FindGameObjectWithTag("wizardVisionController");
        wvcScr           = wizardControlObj.GetComponent <wizardVisionControlScript> ();
        player           = GameObject.FindGameObjectWithTag("Player");
        rig      = GetComponent <Rigidbody> ();
        nameText = GetComponentInChildren <TextMesh> ();
        //Debug.Log (nameText);

        nameText.text = GameObject.FindGameObjectWithTag("EnemyNameManager").GetComponent <EnemyNameManager> ().GetName();
        //Debug.Log (nameText.text);
    }
Пример #3
0
    //public float limit = 5;
    //public float yval = 0;



    // Use this for initialization
    void Start()
    {
        wizardControlObj = GameObject.FindGameObjectWithTag("wizardVisionController");
        wvcScr           = wizardControlObj.GetComponent <wizardVisionControlScript> ();

        GetComponent <Renderer> ().material.SetFloat("_DISPVALUE", 5);
        GetComponent <Renderer> ().material.SetFloat("_XPOS", wvcScr.xVal);
        GetComponent <Renderer> ().material.SetFloat("_YPOS", wvcScr.yVal);
        GetComponent <Renderer> ().material.SetFloat("_ZPOS", wvcScr.zVal);

        //it's dumb to do this every frame.
        GetComponent <Renderer> ().material.SetFloat("_MOVE", 0);
        randomTimer = Random.Range(1f, 8f);
    }
    //public float limit = 5;
    //public float yval = 0;



    // Use this for initialization
    void Start()
    {
        wizardControlObj = GameObject.FindGameObjectWithTag("wizardVisionController");
        wvcScr           = wizardControlObj.GetComponent <wizardVisionControlScript> ();
    }
Пример #5
0
 // Use this for initialization
 void Start()
 {
     rigbody = GetComponent <Rigidbody> ();
     wvcScr  = wizardVisionObj.GetComponent <wizardVisionControlScript> ();
 }