Example #1
0
 //ボス戦開始
 //アニメーションを動かす+カメラとプレイヤーを止める
 void OnTriggerEnter2D(Collider2D other)
 {
     if (other.tag == "Player" && BossFlag == false)
     {
         BossFlag = true;
         animator.SetBool("BossFlag", true);
         GodTouches.PlayerMoveScript Pmove = Maincamera.GetComponent <GodTouches.PlayerMoveScript>();
         Pmove.StopPlayer();
         CameraMoveScript.CameraCanMove = 0;
     }
 }
Example #2
0
    void OnTriggerEnter2D(Collider2D other)
    {
//最初の処理
        if (other.tag == "Player" && BossFlag == 9)
        {
            BossFlag = 0;
            animator.SetInteger("BossFlag", 0);
            GodTouches.PlayerMoveScript Pmove = Maincamera.GetComponent <GodTouches.PlayerMoveScript>();
            Pmove.StopPlayer();
        }
    }