// Use this for initialization void Start() { GameObject camera = GameObject.Find(m_cameraName); this.m_inputManagement = camera.GetComponent<WindowInputsManagement>(); this.m_list = this.transform.FindChild("ListContentElts"); this.m_subList = GameObject.Find(m_subListName).transform; this.m_behaviour = GameObject.Find(m_subWindowName).GetComponent<WindowBehaviour>(); this.m_behaviour.ForceReduce(); // on ferme par défaut la fenetre this.m_subWindowInterface = this.m_behaviour.transform.FindChild("Interface"); this.m_basePosition = this.transform.position; }
// Use this for initialization void Start() { GameObject camera = GameObject.Find(m_camera); this.m_inputManagement = camera.GetComponent<WindowInputsManagement>(); this.m_scrollBarContent = this.transform.FindChild("ScrollContent").gameObject; this.m_scrollBarButton = this.transform.FindChild("ScrollButton").gameObject; this.m_plane = new Plane(camera.transform.forward,this.m_scrollBarContent.transform.position); this.SetButtonPosition(); }