Example #1
0
        // Use this for initialization
        void Awake()
        {
            m_controller = FindObjectOfType <AbstractArtGalleryController>();

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

            VisionAreaMesh = go.GetComponent <ArtGalleryIsland>();

            m_controller.UpdateVision(this);
        }
Example #2
0
 // Use this for initialization
 public new void Awake()
 {
     base.Awake();
     m_controller = FindObjectOfType <AbstractArtGalleryController>();
 }