2020-06-04から1日間の記事一覧

360度 敵を生成

using System.Collections; using System.Collections.Generic; using UnityEngine; using System.Collections.Generic; public class enemyInst : MonoBehaviour { float time; //生み出す敵のオブジェクト public GameObject EnemyObj; //プレイヤーのオブ…

マウスの方を向く

using System.Collections; using System.Collections.Generic; using UnityEngine; public class Lookat : MonoBehaviour { Plane plane = new Plane(); float distance = 0; void Update() { // カメラとマウスの位置を元にRayを準備 var ray = Camera.mai…