敵の作成②(敵を回転させる)

回転させる
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);
}
}



【2019版】Danmaku I(基礎1/全22回)
他のコースを見る