Initialer Upload neues Unity-Projekt

This commit is contained in:
Daniel Ocks
2025-07-21 09:11:14 +02:00
commit eeca72985b
14558 changed files with 1508140 additions and 0 deletions

View File

@ -0,0 +1,23 @@
/*
* Copyright (c) Meta Platforms, Inc. and affiliates.
* All rights reserved.
*
* Licensed under the Oculus SDK License Agreement (the "License");
* you may not use the Oculus SDK except in compliance with the License,
* which is provided at the time of installation or download, or which
* otherwise accompanies this software in either electronic or hard copy form.
*
* You may obtain a copy of the License at
*
* https://developer.oculus.com/licenses/oculussdk/
*
* Unless required by applicable law or agreed to in writing, the Oculus SDK
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
using Meta.Conduit;
[assembly:ConduitAssembly]

View File

@ -0,0 +1,11 @@
fileFormatVersion: 2
guid: b01e71cd2c3accd48a3a3b6c3a4c5609
MonoImporter:
externalObjects: {}
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:
assetBundleName:
assetBundleVariant:

View File

@ -0,0 +1,76 @@
/*
* Copyright (c) Meta Platforms, Inc. and affiliates.
* All rights reserved.
*
* Licensed under the Oculus SDK License Agreement (the "License");
* you may not use the Oculus SDK except in compliance with the License,
* which is provided at the time of installation or download, or which
* otherwise accompanies this software in either electronic or hard copy form.
*
* You may obtain a copy of the License at
*
* https://developer.oculus.com/licenses/oculussdk/
*
* Unless required by applicable law or agreed to in writing, the Oculus SDK
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
using System;
using Meta.Conduit;
using Meta.WitAi;
using UnityEngine;
namespace Meta.Voice.Samples.Chess
{
public class ChessBoardController : MonoBehaviour
{
public GameObject letters;
public GameObject numbers;
public GameObject chessPiece;
public UnityEngine.UI.Text errorText;
private Vector3 _targetPosition;
void Awake()
{
_targetPosition = chessPiece.transform.position;
}
// Update is called once per frame
void Update()
{
chessPiece.transform.position = Vector3.Lerp(chessPiece.transform.position, _targetPosition, Time.deltaTime);
}
public enum ChessBoardLetter
{
A,
B,
C,
D,
E,
F,
G,
H
}
[MatchIntent("MoveChessPiece")]
public void MoveChessPiece(ChessBoardLetter letter, int number)
{
Debug.Log("Move chess piece to " + letter + number);
_targetPosition = new Vector3(letters.transform.GetChild((int)letter).position.x, _targetPosition.y,
numbers.transform.GetChild(number - 1).position.z);
}
[HandleEntityResolutionFailure]
public void OnHandleEntityResolutionFailure(string intent , Exception ex)
{
Debug.Log("Failed to resolve parameter for intent " + intent + " with error " + ex.Message);
errorText.text = ex.Message;
}
}
}

View File

@ -0,0 +1,11 @@
fileFormatVersion: 2
guid: 86bf99f3b962bc4438f170a19ff653fd
MonoImporter:
externalObjects: {}
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:
assetBundleName:
assetBundleVariant:

View File

@ -0,0 +1,19 @@
{
"name": "Meta.Voice.Samples.Chess",
"rootNamespace": "",
"references": [
"GUID:4504b1a6e0fdcc3498c30b266e4a63bf",
"GUID:e545cc0678493234a9368f4e470c29e8",
"GUID:f02292e638368584080af0193f81ff5c",
"GUID:1c28d8b71ced07540b7c271537363cc6"
],
"includePlatforms": [],
"excludePlatforms": [],
"allowUnsafeCode": false,
"overrideReferences": false,
"precompiledReferences": [],
"autoReferenced": true,
"defineConstraints": [],
"versionDefines": [],
"noEngineReferences": false
}

View File

@ -0,0 +1,7 @@
fileFormatVersion: 2
guid: 5dee22db95ad4c6499562cbedf95705c
AssemblyDefinitionImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant: