Augmented Reality Tutorial#6: How to select the car in selection menu in Augmented Reality.
Автор: Augmented Reality Gaming
Загружено: 2017-03-26
Просмотров: 12955
Описание:
In this tutorial, I am going to show you how to make a selection panel for selecting the car in Augmented Reality.
Please like and subscribe!
Facebook: / augmentedrealitygaminginfo
Music: Jim Yosef - Can't Wait
Link: / jim-yosef-cant-wait-feat-anna-yvette-ncs-r...
Artists: @jim-yosef @annayvette
#Scrip1: CarSelector.
using UnityEngine;
using System.Collections;
public class CarSelector : MonoBehaviour {
public GameObject Car1;
public GameObject Car2;
public GameObject Car3;
public int BallSelected;
// Use this for initialization
void Start () {
Car2.SetActive (false);
Car3.SetActive (false);
}
public void LoadCar1(){
Car1.SetActive (true);
Car2.SetActive (false);
Car3.SetActive (false);
}
public void LoadCar2(){
Car1.SetActive (false);
Car2.SetActive (true);
Car3.SetActive (false);
}
public void LoadCar3(){
Car1.SetActive (false);
Car2.SetActive (false);
Car3.SetActive (true);
}
}
#Script2:Rotate
using UnityEngine;
using System.Collections;
public class Rotate : MonoBehaviour {
// Update is called once per frame
void Update () {
transform.Rotate(0,20*Time.deltaTime,0);
}
}
Повторяем попытку...
Доступные форматы для скачивания:
Скачать видео
-
Информация по загрузке: