コインを回転させよう




コインを回転させる。
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);
}
}
【2019版】BallGame(全27回)
他のコースを見る



コインを回転させる。
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);
}
}
コインを回転させよう