コインを回転させよう




コインを回転させる
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class Coin : MonoBehaviour
{
void Start()
{
}
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 {
// Use this for initialization
void Start () {
}
// Update is called once per frame
void Update () {
transform.Rotate(new Vector3(0,0,90) * Time.deltaTime * 10);
}
}
【2018版】BallGame(全25回)
他のコースを見る



コインを回転させる
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class Coin : MonoBehaviour
{
void Start()
{
}
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 {
// Use this for initialization
void Start () {
}
// Update is called once per frame
void Update () {
transform.Rotate(new Vector3(0,0,90) * Time.deltaTime * 10);
}
}
コインを回転させよう