コインを回転させよう




コインを回転させる
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class Coin : MonoBehaviour
{
// Start is called before the first frame update
void Start()
{
}
// Update is called once per frame
void Update()
{
// ★下記の1行を記載してください。
transform.Rotate(new Vector3(0, 0, 90) * Time.deltaTime);
}
}








回転速度を10倍にする
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class Coin : MonoBehaviour
{
// Start is called before the first frame update
void Start()
{
}
// Update is called once per frame
void Update()
{
// ★回転速度を10倍にする。
transform.Rotate(new Vector3(0, 0, 90) * Time.deltaTime * 10);
}
}
【2021版】BallGame(全31回)
他のコースを見る



コインを回転させる
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class Coin : MonoBehaviour
{
// Start is called before the first frame update
void Start()
{
}
// Update is called once per frame
void Update()
{
// ★下記の1行を記載してください。
transform.Rotate(new Vector3(0, 0, 90) * Time.deltaTime);
}
}








回転速度を10倍にする
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class Coin : MonoBehaviour
{
// Start is called before the first frame update
void Start()
{
}
// Update is called once per frame
void Update()
{
// ★回転速度を10倍にする。
transform.Rotate(new Vector3(0, 0, 90) * Time.deltaTime * 10);
}
}
コインを回転させよう