// 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(); }
// Use this for initialization public new void Awake() { base.Awake(); m_controller = FindObjectOfType <ArtGalleryController>(); }