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
// OnPreRender/OnPostRender will not call in SRP | |
void OnPostRender() | |
{ | |
//Debug.LogFormat("frameTimer : {0} , frameInterval : {1}", frameTimer, frameInterval); | |
if (isREC && (frameTimer += Time.deltaTime) > frameInterval) | |
{ | |
frameTimer -= frameInterval; | |
frameBuffer.ReadPixels(camRect, 0, 0); | |
Debug.Log("EncodeToJPG Now"); |
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 System.Collections; | |
namespace DesignPattern_Bridge | |
{ | |
// 定義作類別之共用介面 | |
public abstract class Implementor | |
{ | |
public abstract void OperationImp(); | |
} |
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 System.Collections; | |
using DesignPattern_Bridge; | |
public class BridgeTest : MonoBehaviour { | |
void Start () { | |
UnitTest(); | |
UnitTest_Window(); | |
} | |
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
{"lastUpload":"2021-03-29T07:33:13.890Z","extensionVersion":"v3.4.3"} |
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 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 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 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 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 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 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; | |
} |
NewerOlder