// 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>(); m_controller.UpdateVision(this); }
public void UpdateVision() { m_controller.UpdateVision(this); }