This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class Player extends Schema { } | |
schema.defineTypes(Player, { | |
UUID: "string", | |
PAWNS: "string", | |
PicUrl: "string", | |
NickName: "string", | |
}); | |
class board extends Schema { | |
} | |
schema.defineTypes(board, { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
init() { | |
/* | |
* mean safe place but not start place | |
Board[1] == safe place // entry of first player | |
Board[9] == safe place * | |
Board[14] == safe place // entry of second player | |
Board[22] == safe place * | |
Board[27] == safe place // entry of Third player | |
Board[35] == safe place * | |
Board[40] == safe place // entry of fourth player |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using UnityEngine; | |
using UnityEngine.UIElements; | |
using UnityEngine.XR.Interaction.Toolkit; | |
public class XrRay2UIelement : MonoBehaviour | |
{ | |
UIDocument document; | |
[SerializeField] private XRRayInteractor rayInteractor; | |
private void Start() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Place this script in 'Editor' Folder | |
// Create a folder named 'Templates' at the same directory level as the 'Editor' folder, but outside of it. | |
// Create 'ScriptName.cs.txt' in 'Templates' Folder | |
// Done | |
using System.IO; | |
using UnityEditor; | |
using UnityEngine; |