Esempio n. 1
0
        public override int GetHashCode()
        {
            unchecked {
                int hash = 17;
                if (DefaultCard != default(string))
                {
                    hash = hash * 23 + DefaultCard.GetHashCode();
                }
                if (Email != default(string))
                {
                    hash = hash * 23 + Email.GetHashCode();
                }
                if (Description != default(string))
                {
                    hash = hash * 23 + Description.GetHashCode();
                }
                if (Metadata != default(IDictionary <string, object>))
                {
                    hash = hash * 23 + Metadata.GetHashCode();
                }
                if (Cards != default(ScopedList <Card>))
                {
                    hash = hash * 23 + Cards.GetHashCode();
                }

                return(hash);
            }
        }
Esempio n. 2
0
    private void CreatThisCart(int index)
    {
        Vector3     pos         = new Vector3(ClickedNode.position.x, ClickedNode.position.y, 10);
        GameObject  NewOBj      = Instantiate(allCharsPrefabs[index], pos, allCharsPrefabs[index].transform.rotation) as GameObject;
        DefaultCard defaultcart = NewOBj.GetComponent <DefaultCard> ();

        defaultcart.SetInfo(ClickedNode.row, ClickedNode.column);
        ClickedNode.SetUsageID(index);
        SelectedNPList.Add(defaultcart);
        ClickedNode = null;
    }
Esempio n. 3
0
        public override int GetHashCode()
        {
            unchecked {
                int hash = 17;
                hash = hash * 23 + DefaultCard.GetHashCode();
                hash = hash * 23 + Email.GetHashCode();
                hash = hash * 23 + Description.GetHashCode();
                hash = hash * 23 + Cards.GetHashCode();

                return(hash);
            }
        }
Esempio n. 4
0
    public void DeleteSceneCart()
    {
        if (SelectedOBJ == null)
        {
            return;
        }
        DefaultCard defaultCard_ = SelectedOBJ.GetComponent <DefaultCard> ();
        int         row          = defaultCard_.row;
        int         column       = defaultCard_.column;

        AllNodePreviews [column, row].SetColor(freeNodeColor);
        AllNodePreviews [column, row].SetUsageID(-2);
        Destroy(SelectedOBJ);
        DeletBTN.SetActive(false);
    }