예제 #1
0
        //クリア:プレイヤーだけ動かす+1秒後にクリア画像とクリア音
        public void ClearAfter1Sec()
        {
            PlayerMoveScript Pmove = this.GetComponent <PlayerMoveScript>();

            Pmove.StartPlayer();
            Invoke("Clear", 1.0f);
        }
예제 #2
0
//ボスの死亡処理
    public void FlagClear()
    {
        BossFlag = 4;

        CameraMoveScript.CameraStopper = 0;
        GodTouches.PlayerMoveScript Pmove = Maincamera.GetComponent <GodTouches.PlayerMoveScript>();
        Pmove.StartPlayer();
        Invoke("clear", 3.0f);
    }
        void StartPlay()
        {
            player.SetActive(true);
            PlayerMoveScript pMoveS = Maincamera.GetComponent <PlayerMoveScript> ();

            pMoveS.StartPlayer();
            TitleImg.gameObject.SetActive(false);
            TitleBG.gameObject.SetActive(false);
        }
예제 #4
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;
     }
 }
예제 #5
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();
        }
    }