敵の作成②(敵を回転させる)
![5ae6a4d5 0c50 4b79 91b4 1fbb4f7c46cc](https://codegenius.org/uploads/slide/image/4551/5ae6a4d5-0c50-4b79-91b4-1fbb4f7c46cc.jpeg)
回転させる
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class Rotate : MonoBehaviour
{
public Vector3 pos;
void Update()
{
transform.Rotate(new Vector3(pos.x, pos.y, pos.z) * Time.deltaTime);
}
}
![Dc8d3495 fc4b 48b3 ae74 3bcddb0e77bf](https://codegenius.org/uploads/slide/image/4552/dc8d3495-fc4b-48b3-ae74-3bcddb0e77bf.jpeg)
![E8edc8d4 68bc 4081 b160 0f75b9cb8616](https://codegenius.org/uploads/slide/image/4553/e8edc8d4-68bc-4081-b160-0f75b9cb8616.jpeg)
![70ba5063 821f 4828 993f 0fe246383202](https://codegenius.org/uploads/slide/image/4554/70ba5063-821f-4828-993f-0fe246383202.jpeg)
【2019版】Danmaku I(基礎1/全22回)
他のコースを見る