bool SpawnTentacle(int id, Vector2 spawnPos, Vector2 angle) { //邪魔していたらキャンセルアニメーションを再生 Piece anglePiece = StageGenerator.GetPiece(angle + spawnPos); if (anglePiece) { if (!isFailAnimPlay[id]) { StartCoroutine(FailCreateAnimation(id, anglePiece.position)); } return(false); } //触手の生成開始 if (currenTentacle[id]) { currenTentacle[id].Return(); } currenTentacle[id] = Tentacle.CreateTentacle(spawnPos); currenTentacle[id].angle = angle; currenTentacle[id].transform.position = spawnPos; //デバッグ用でSEを鳴らす //AudioManager.Play(SEType.Tap, 1); return(true); }