BlueGit

blue-star ggj-2020

Files

ggj-2020 / Assets / Oculus / Platform / Samples / VrBoardGame / Scripts / BoardPosition.cs

BoardPosition.cs

Project Import
timfa Tim Falken · pushed by timfa · 6 years ago
b77834a1 History
BoardPosition.cs 513 B Download Raw
1namespace Oculus.Platform.Samples.VrBoardGame
2{
3 using UnityEngine;
4 using System.Collections;
5
6 // This behaviour is attached to GameObjects whose collision mesh
7 // describes a specific position on the GameBoard. The collision
8 // mesh doesn't need to fully cover the board position, but enough
9 // for eye raycasts to detect that the user is looking there.
10 public class BoardPosition : MonoBehaviour {
11
12 [SerializeField] [Range(0,2)] public int x = 0;
13 [SerializeField] [Range(0,2)] public int y = 0;
14 }
15}