From 50479f98e4c180f809f75b9dbb7d0d4de41265e8 Mon Sep 17 00:00:00 2001 From: "Abhinav a.k.a Demkeys" Date: Mon, 11 Jan 2021 15:17:53 +0300 Subject: [PATCH] Delete ExampleWorldController.cs Removed all ExampleWorldScene's associated assets from VFS directory because it is a deprecated example. Current valid examples are Ex01 and Ex02. --- VFS/Examples/ExampleWorldController.cs | 52 -------------------------- 1 file changed, 52 deletions(-) delete mode 100644 VFS/Examples/ExampleWorldController.cs diff --git a/VFS/Examples/ExampleWorldController.cs b/VFS/Examples/ExampleWorldController.cs deleted file mode 100644 index 0104578..0000000 --- a/VFS/Examples/ExampleWorldController.cs +++ /dev/null @@ -1,52 +0,0 @@ - -using UdonSharp; -using UnityEngine; -using VRC.SDKBase; -using VRC.Udon; - -public class ExampleWorldController : UdonSharpBehaviour -{ - public UdonBehaviour FileManager; - public UdonBehaviour FileSystem; - - void Start() - { - - } - - void Update() - { - - // if(Input.GetKeyDown(KeyCode.Space)) - // { - // string s = ""; - // byte[] bArr = (byte[])FileSystem.GetProgramVariable("FileSystemData"); - // Debug.Log(System.Convert.ToBase64String(bArr)); - // } - - } - - public void SaveData() - { - byte[] bArr = new byte[8]; - for(int i = 0; i < bArr.Length; i++) - bArr[i] = (byte)UnityEngine.Random.Range(0,255); - FileManager.SetProgramVariable("fileDataBuffer", bArr); - } - - public void LoadData() - { - byte[] bArr = (byte[])FileManager.GetProgramVariable("fileDataBuffer"); - string s = ""; - for(int i = 0; i < bArr.Length; i++) - { - s += $"{System.Convert.ToString(bArr[i],16).PadLeft(2,'0')} "; - } - Debug.Log(s); - // byte[] b = System.BitConverter.GetBytes('c'); - // byte[] b = new byte[]{0x1a,0x2,0xc1,0xd}; - // float f = System.BitConverter.ToSingle(b, 0); - // Debug.Log(bArr.Length); - } - -}