// Start is called before the first frame update void Start() { ModeData modeData = GameObject.Find("ModeData").GetComponent <ModeData>(); IsEasy = modeData.IsEasy(); deck = GetComponent <ZiziDeck>(); /* * hands = new List<int>[4]; * originals = new List<int>[4]; * drawns = new List<int>[4]; * for (int i = 0; i < 4; i++) * { * if (drawns[i] == null) drawns[i] = new List<int>(); * else drawns[i].Clear(); * } * grave = new List<int>(); * CardList(); * InitBackList(); //orginalBack[cardIndex]でbackIndexを返す、ziziは4 * Delete(); * Delete(); * makeoriginals(); //originals配列を作成 * //Record record = GameObject.Find("GameManager").GetComponent<Record>(); * //record.InitRecord(originals); * //record.DebugRecord(); */ }
// Start is called before the first frame update void Start() { ModeData modeData = GameObject.Find("ModeData").GetComponent <ModeData>(); IsEasy = modeData.IsEasy(); deck = GetComponent <ZiziDeck>(); hands = new List <int> [4]; originals = new List <int> [4]; drawns = new List <int> [4]; for (int i = 0; i < 4; i++) { if (drawns[i] == null) { drawns[i] = new List <int>(); } else { drawns[i].Clear(); } } grave = new List <int>(); CardList(); InitBackList(); //orginalBack[cardIndex]でbackIndexを返す、ziziは4 Delete(); Delete(); makeoriginals(); //originals配列を作成 //Record record = GameObject.Find("GameManager").GetComponent<Record>(); //record.InitRecord(originals); //record.DebugRecord(); }