This file contains hidden or 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 System; | |
using System.Collections; | |
using System.Collections.Generic; | |
using UnityEngine; | |
using UnityEngine.UI; | |
using Random = UnityEngine.Random; | |
public class Test : MonoBehaviour | |
{ | |
public RawImage rawImage; |
This file contains hidden or 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 System; | |
using System.Collections.Generic; | |
using UnityEngine; | |
using UnityEngine.Events; | |
public class BowTarget : MonoBehaviour | |
{ | |
// Collection / context pattern | |
public static List<BowTarget> All = new List<BowTarget>(); |
This file contains hidden or 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 System.Collections; | |
using System.Collections.Generic; | |
using UnityEngine; | |
public class Arrow : MonoBehaviour | |
{ | |
[Header("Main")] | |
public Transform tip; | |
public float movementSpeed; | |
public float ttl = 5; |
This file contains hidden or 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 System; | |
using System.Collections; | |
using System.Collections.Generic; | |
using UltimateXR.Avatar; | |
using UltimateXR.Core; | |
using UltimateXR.Core.Components.Composite; | |
using UltimateXR.Devices; | |
using UltimateXR.Manipulation; | |
using UnityEngine; | |
using UnityEngine.Events; |
This file contains hidden or 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 System; | |
using System.Collections; | |
using System.Collections.Generic; | |
using UltimateXR.Avatar; | |
using UltimateXR.Core; | |
using UltimateXR.Core.Components.Composite; | |
using UltimateXR.Manipulation; | |
using UnityEngine; | |
public class ClimbingHold : UxrGrabbableObjectComponent<ClimbingHold> |
This file contains hidden or 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
public Transform climbingAnchor; | |
public float climbRadius = 0.1f; | |
private ConfigurableJoint Joint; | |
void OnGrab () | |
{ | |
if (ClimbGrab) | |
{ | |
// Player is now attached to climbable object | |
} |
This file contains hidden or 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
public IEnumerator Type1 () { | |
AddResult("T1"); | |
//Do logic for type 1 | |
SetResult("T1", Result.Success); | |
} | |
public IEnumerator Type2 () { | |
AddResult("T2"); | |
//Conditional logic for type 2 | |
if (false) { |
This file contains hidden or 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 System; | |
using System.Collections; | |
using System.Collections.Generic; | |
using UnityEngine; | |
using UnityEngine.Networking; | |
using SimpleJSON; | |
public class APIController : MonoBehaviour | |
{ | |
public static string mainURL = @"https://testurl.com"; |
This file contains hidden or 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
public class OVRInputSet | |
{ | |
public Vector2 leftStick, rightStick; | |
public float leftTrigger, rightTrigger; | |
public float leftHand, rightHand; | |
float lastLeftP, lastRightP, lastLeftH, lastRightH; |
This file contains hidden or 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
Template: | |
Name | |
Author(s) | |
Link | |
--------------------------------------------------------------------------------------------------------- | |
Game Definitions: A Wittgensteinian Approach | |
Jonne Arjoranta | |
http://gamestudies.org/1401/articles/arjoranta |
NewerOlder