//クリア:プレイヤーだけ動かす+1秒後にクリア画像とクリア音 public void ClearAfter1Sec() { PlayerMoveScript Pmove = this.GetComponent <PlayerMoveScript>(); Pmove.StartPlayer(); Invoke("Clear", 1.0f); }
//ボスの死亡処理 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); }
//ボス戦開始 //アニメーションを動かす+カメラとプレイヤーを止める 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; } }
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(); } }