using System.Collections; using System.Collections.Generic; using UnityEngine; public class EnemyController : …
Bullet
public class Bullet : MonoBehaviour { Rigidbody2D rbody; public float speed; void Start() { rbody = this.GetCo…
Player
public class Player : MonoBehaviour { Rigidbody2D rbody; //Rigidbody2D型の変数 float axisH = 0.0f; //入力 public flo…
TriggerEnter
using System.Collections; using System.Collections.Generic; using UnityEngine; using UnityEngine.SceneManageme…