コード例 #1
0
    private IEnumerator Play_Before_Boss_Movie_Cor()
    {
        //初期設定
        player.GetComponent <PlayerController>().Set_Is_Playable(false);
        PauseManager.Instance.Set_Is_Pausable(false);
        is_First_Visit = SceneManagement.Instance.Is_First_Visit();
        BGMManager.Instance.Stop_BGM();

        //自機登場
        MoveTwoPoints player_Move = player.AddComponent <MoveTwoPoints>();

        player_Move.Change_Paramter(0.021f, 0, 0);
        player_Move.Change_Transition_Curve(AnimationCurve.Linear(0, 0, 1, 1), 0);
        player.GetComponent <PlayerController>().Change_Animation("DashBool");
        player_Move.Start_Move(new Vector3(-120f, -83f), 0);
        yield return(new WaitUntil(player_Move.End_Move));

        player.GetComponent <PlayerController>().Change_Animation("IdleBool");

        //会話
        if (is_First_Visit)
        {
            _message.Start_Display("NemunoText", 1, 8);
            yield return(new WaitUntil(_message.End_Message));
        }

        //終了設定
        player.GetComponent <PlayerController>().Set_Is_Playable(true);
        PauseManager.Instance.Set_Is_Pausable(true);

        //戦闘開始
        nemuno.GetComponent <NemunoController>().Start_Battle();
        BGMManager.Instance.Change_BGM("Stage2_Boss");
    }
コード例 #2
0
    private IEnumerator Rush_Cor()
    {
        GameObject    camera = GameObject.FindWithTag("MainCamera");
        GameObject    player = GameObject.FindWithTag("PlayerTag");
        MoveTwoPoints _move  = GetComponent <MoveTwoPoints>();

        //初期位置
        transform.position = new Vector3(camera.transform.position.x + 240f, 170f);

        //突進
        float height = player.transform.position.y - transform.position.y;

        _move.Change_Paramter(0.007f, height, 0);
        Vector2 aim_Pos = new Vector2(transform.position.x - 600f, 170f);

        _move.Start_Move(aim_Pos);

        yield return(new WaitUntil(_move.End_Move));

        Destroy(gameObject);
    }
コード例 #3
0
    //ブロックの移動
    private IEnumerator Move_Block_Cor(GameObject block, Vector2Int direction)
    {
        MoveTwoPoints move = block.GetComponent <MoveTwoPoints>();

        if (move == null)
        {
            move = block.AddComponent <MoveTwoPoints>();
            move.Change_Transition_Curve(AnimationCurve.Linear(0, 0, 1, 1), 0);
            move.Change_Paramter(0.07f, 0, 0);
        }

        Vector3 d        = new Vector3(direction.x, direction.y);
        Vector2 next_Pos = block.transform.position + d * block_Size;

        move.Start_Move(next_Pos);

        //移動が終わるまで無敵化
        block.layer = LayerMask.NameToLayer("InvincibleLayer");
        yield return(new WaitUntil(move.End_Move));

        block.layer = LayerMask.NameToLayer("Default");
    }
コード例 #4
0
 //移動速度の上昇
 private void Raise_Move_Speed()
 {
     _move_Two_Points.Change_Paramter(0.027f, 48f, 0);   //通常ジャンプ用
     _move_Two_Points.Change_Paramter(0.014f, 0, 1);     //バリア突進用
     _move_Two_Points.Change_Paramter(0.03f, 0, 3);      //ダッシュ用
 }