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 UnityEngine; | |
namespace Vuforia | |
{ | |
/// <summary> | |
/// A custom handler that implements the ITrackableEventHandler interface. | |
/// </summary> | |
public class FoodCheck : MonoBehaviour, | |
ITrackableEventHandler | |
{ |
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
private void OnTrackingFound() | |
{ | |
Renderer[] rendererComponents = GetComponentsInChildren<Renderer>(true); | |
Collider[] colliderComponents = GetComponentsInChildren<Collider>(true); | |
// Enable rendering: | |
foreach (Renderer component in rendererComponents) | |
{ | |
component.enabled = true; | |
} |
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
private void OnTrackingFound() | |
{ | |
Renderer[] rendererComponents = GetComponentsInChildren<Renderer>(true); | |
Collider[] colliderComponents = GetComponentsInChildren<Collider>(true); | |
// Enable rendering: | |
foreach (Renderer component in rendererComponents) | |
{ | |
component.enabled = true; | |
} |
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
private void OnTrackingFound() | |
{ | |
Renderer[] rendererComponents = GetComponentsInChildren<Renderer>(true); | |
Collider[] colliderComponents = GetComponentsInChildren<Collider>(true); | |
// Enable rendering: | |
foreach (Renderer component in rendererComponents) | |
{ | |
component.enabled = true; | |
} |
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
private void Awake()//載入場景 | |
{ | |
if (instance != null) | |
{ | |
DestroyImmediate(gameObject); | |
return; | |
} | |
DontDestroyOnLoad(gameObject); | |
instance = this; |
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.SceneManagement; | |
using UnityEngine.UI; | |
public class PhotonManager : Photon.PunBehaviour | |
{ | |
public static PhotonManager instance; |
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 SpawnRandow : Photon.MonoBehaviour | |
{ | |
[SerializeField] | |
private GameObject[] TeamA; | |
[SerializeField] |
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 UnityEditor; | |
using UnityEngine; | |
using UnityEngine.UI; | |
[RequireComponent(typeof(BoxCollider2D))] | |
public class Dig_Progressing : MonoBehaviour | |
{ |
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
{"lastUpload":"2021-03-29T07:33:13.890Z","extensionVersion":"v3.4.3"} |
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 UnityEngine; | |
using System.Collections; | |
using DesignPattern_Bridge; | |
public class BridgeTest : MonoBehaviour { | |
void Start () { | |
UnitTest(); | |
UnitTest_Window(); | |
} | |
OlderNewer