示例#1
0
        public void EcranGestionCartes()
        {
            grdMain.Children.Remove(ContenuEcran);
            grdMain.Children.Remove(ContenuListeAmi);
            ContenuEcran = new GestionCartes(this);

            grdMain.Children.Add(ContenuEcran);
        }
示例#2
0
    // 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;
    }
示例#3
0
    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);
    }