void get() { gameManager = GameObject.Find("GameManager"); draw = gameManager.GetComponent <DrawOnline>(); turnManager = gameManager.GetComponent <TurnManagerOnline>(); turnPlayer = turnManager.turnPlayer; drawnPlayer = turnManager.drawnPlayer; preDrawnPlayer = turnManager.preDrawnPlayer; drawnCard = turnManager.drawnCard; hand = GameObject.Find("Hand"); //Handのクラスを取得 hands = hand.GetComponent <HandsOnline>(); cardModel = GetComponent <CardModel>(); cardIndex = cardModel.cardIndex; //カードモデルからcardIndexを取得 }