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

回転スクリプト
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);
}
}



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