ジャンプ装置の作成



ジャンプ装置
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class JumpPoint : MonoBehaviour
{
private void OnCollisionEnter2D(Collision2D collision)
{
collision.gameObject.GetComponent<Rigidbody2D>().velocity = Vector2.up * 13f;
}
}



【2022版】ActionGame2D(全33回)
他のコースを見る