Ejemplo n.º 1
0
    // Update is called once per frame
    public void Hexcreat(int i, int k)
    {
        index = Random.Range(0, ColorsGameObject.Length);
        GameObject     new_hexs = GameObject.Instantiate(ColorsGameObject[index], new Vector2(i, k + 10), Quaternion.identity);
        changePosition hex      = new_hexs.GetComponent <changePosition>();

        hex.new_location(i, k);
        hexs[i, k] = hex;
    }