public void BecomeEmploye() { this.transform.SetParent(Manager_Raycast.Instance.m_ObjectMet.transform); this.GetComponent <Postulant_Bonus>().Action(); this.GetComponent <Postulant_Bonus>().m_ManagerSpawn.GetComponent <Postulant_Spawn>().m_CurrentNbPostulant--; if (Manager_Raycast.Instance.m_ObjectMet.GetComponent <Liste_EmployArea>().m_EmployeInArea.Count != 0) { foreach (GameObject Employe in Manager_Raycast.Instance.m_ObjectMet.GetComponent <Liste_EmployArea>().m_EmployeInArea) { Employe.GetComponent <Postulant_Bonus>().Cancel(); Destroy(Employe); } Manager_Raycast.Instance.m_ObjectMet.GetComponent <Liste_EmployArea>().m_EmployeInArea.Clear(); } Manager_Raycast.Instance.m_ObjectMet.GetComponent <Liste_EmployArea>().m_Border.GetComponent <Image>().enabled = true; Manager_Raycast.Instance.m_ObjectMet.GetComponent <Liste_EmployArea>().m_Border.transform.SetAsLastSibling(); transform.tag = "Employe"; transform.position = Manager_Raycast.Instance.m_ObjectMet.transform.position; gameObject.GetComponent <Objects_Movable>().StockPos(); Manager_Raycast.Instance.m_ObjectMet.GetComponent <Liste_EmployArea>().m_EmployeInArea.Add(this.gameObject); Manager_Input.Instance.GetComponent <Manager_Input>().m_StockedObject = null; gameObject.GetComponent <Objects_Movable>().m_Movable = false; }