     }
     
     var finishedcount = 0
-    let moveToPointSecond: [[Int]] = [[110,110],[200,570],[300,640]]
+    let moveToPointSecond: [[Int]] = [[110,110],[200,570],[330,640]]
     let addToPointSecond: [[Int]] = [[248,110],[100,570],[230,640]]
     
     //CAanimation終了後に呼ばれる
     override func animationDidStop(anim: CAAnimation, finished flag: Bool) {
         
         finishedcount++
-
+        
         if(finishedcount == 3){  //最初の線が伸びていくアニメーション終了後
             ShowSecondLine()
         }
         
         if(finishedcount == 6){ //2番目に線が伸びていくアニメーション終了後
-            ShowLabel()
-        }
-        
-    }
-    
+            if(transitionButton.isEmpty){                               //アニメーションを最後まで見て生成しているかどうかを判断
+                ShowTransitionButton()
+            }else{//生成している場合は表示だけ行う
+                for(var i = 0; i < 3; i++){
+                       self.transitionButton[i].setTitleColor(UIColor.hex(ColorCode[i], alpha: 1.0), forState: .Normal)
+                }
+            }
+        }
+    }
+    
+    //2番目の点線を表示
     func ShowSecondLine(){
         for(var i = 3; i < 6; i++){
             let linework = UIBezierPath()

    func MenuButtontapped(sender: UIButton){
        
        if(menushow == 0){      //Menuが出てくる
            for(var i = 0; i < 4; i++){         //ぐるぐる円
                self.ovalShapeLayerArray[i].strokeColor = UIColor.hex(ColorCode[i], alpha: 1.0).CGColor
            }

            for(var i = 0; i < 3; i++){
                self.lineShapeLayer[i].strokeColor = UIColor.clearColor().CGColor
                self.lineShapeLayer[i+3].strokeColor = UIColor.clearColor().CGColor
                
                if(transitionButton.isEmpty){
                    
                }else{
                    for(var i = 0; i < 3; i++){
                        self.transitionButton[i].setTitleColor(UIColor.clearColor(), forState: .Normal)
                    }
                }
            }
            
            UIView.animateWithDuration(0.3, animations: { () -> Void in
