public void EcranGestionCartes() { grdMain.Children.Remove(ContenuEcran); grdMain.Children.Remove(ContenuListeAmi); ContenuEcran = new GestionCartes(this); grdMain.Children.Add(ContenuEcran); }
// Start is called before the first frame update void Start() { cardScript = GameObject.FindObjectOfType <GestionCartes>(); allCell = new CellData[gridSize.x * gridSize.y]; gridObjectCollider = gridObject.transform.GetChild(0).gameObject.GetComponent <BoxCollider>(); CreateGrid(); cellBaseCol = gridObject.transform.GetChild(0).gameObject.GetComponent <MeshRenderer>().sharedMaterial.color; }
void LaunchGame() { m_Canvas.StartGameUI(); GestionCartes deck = gameDeck.GetComponent <GestionCartes>(); terrain = GameObject.FindObjectOfType <GridGen>(); Instantiate(handGO).transform.parent = GameObject.Find("GamePanel").transform; m_MyActionPhase = m_Action.Mouvement; m_Canvas.UpdateInterface(m_MyActionPhase, hand); }