Exemplo n.º 1
0
    private const int MAX_COLUMN = 8;  //列の最大数

    // Start is called before the first frame update
    void Start()
    {
        //初期化
        playerPosition = GetComponent <SelectPlace>();
        CountSquares   = GetComponent <SelectPlace>();
        cardsPosition  = GetComponent <CollCreate>();
        topObjList     = GetComponent <ObjList>();
        downObjList    = GetComponent <ObjList>();
        rightObjList   = GetComponent <ObjList>();
        leftObjList    = GetComponent <ObjList>();


        //変数初期化
        sideCount = 0;

        //isDirectionCount = false;
        isMinusCount = true;
        isPlusCount  = true;
        isNone       = false;

        //ポジションをとる
        //positionNum = playerPosition.myNumber;
        topPos   = playerPosition.myNumber;
        downPos  = playerPosition.myNumber;
        rightPos = playerPosition.myNumber;
        leftPos  = playerPosition.myNumber;
    }
Exemplo n.º 2
0
    // Start is called before the first frame update
    void Start()
    {
        playerPosition = GetComponent <SelectPlace>();
        cardsPosition  = GetComponent <CollCreate>();

        isTurnOverOk = false;
    }
Exemplo n.º 3
0
 public bool isListAdd;//追加するとき
 // Start is called before the first frame update
 void Start()
 {
     putTheCardScript = GetComponent <PutTheCard>();
     playerPosition   = GetComponent <SelectPlace>();
     cardsPosition    = GetComponent <CollCreate>();
     cardsDate        = GetComponent <CardsDate>();
     counttop         = GetComponent <CountTop>();
     objList          = GetComponent <ObjList>();
 }
Exemplo n.º 4
0
    bool isLiftObj; //オブジェクトを選択しているとわかりやすいように持ち上げて表示するとき

    // Use this for initialization
    void Start()
    {
        master     = GameObject.Find("MasterCube");
        selectMode = master.GetComponent <SelectPlace>();
        cardsDate  = GetComponent <CardsDate>();
        cards      = master.GetComponent <CollCreate>();

        initPosition = transform.position;
        isLiftObj    = false;
    }
Exemplo n.º 5
0
    private const int MAX_CARDS = 64;//複製するオブジェクトの最大数

    // Start is called before the first frame update
    void Start()
    {
        //初期化
        cardsPosition = GetComponent <CollCreate>();
        objList       = GetComponent <ObjList>();

        //変数初期化
        isCountInit = true;
        isPut       = false;

        x        = 0;
        y        = 0;
        myNumber = 0;
    }