/// <summary> /// 触手のはさむアクション /// </summary> void TentacleAction() { //触手の間のピースを取得 Piece[] btwp = GetPiecesBetweenTentacle(); if (btwp != null && !currentPieceContainer) { //遠かったらはさめない if (!CheckRetentionContainer(PieceContainer.GetContainerSize(btwp))) { return; } Debug.Log("はさめたよ"); //はさむ currentPieceContainer = PieceContainer.CreateContainer(btwp); //アニメーション変更 int id; id = StageGenerator.GetPiece(currenTentacle[0].GetTargetPosition()).id; currenTentacle[0].SetAnimatonState(Tentacle.GetHoldState(id)); if (id == 5) { AudioManager.Play(SEType.Hot, 0.5f); } if (id == 6) { AudioManager.Play(SEType.Cold, 0.5f); } id = StageGenerator.GetPiece(currenTentacle[1].GetTargetPosition()).id; currenTentacle[1].SetAnimatonState(Tentacle.GetHoldState(id)); if (id == 5) { AudioManager.Play(SEType.Hot, 0.5f); } if (id == 6) { AudioManager.Play(SEType.Cold, 0.5f); } //音再生 AudioManager.Play(SEType.HasamuNormal); } }