Ejemplo n.º 1
0
        // Use this for initialization
        void Awake()
        {
            m_controller = FindObjectOfType <ArtGalleryController>();

            // initialize the vision polygon
            GameObject go = Instantiate(m_visionAreaPrefab, new Vector3(0, 0, -1.5f), Quaternion.identity) as GameObject;

            VisionAreaMesh = go.GetComponent <ArtGalleryIsland>();

            //UpdateVision();
        }
Ejemplo n.º 2
0
 // Use this for initialization
 public new void Awake()
 {
     base.Awake();
     m_controller = FindObjectOfType <ArtGalleryController>();
 }