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; | |
using Newtonsoft.Json; | |
using UnityEngine.Events; | |
using System.IO; | |
using System; | |
/// <summary> | |
/// Save And Load | |
/// 本篇腳本參考:http://zxxcc0001.pixnet.net/blog/post/243195373-unity---各平台檔案路徑 |
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; | |
using UnityEngine.UI; | |
public class PlayerData : MonoBehaviour { | |
SaveAndLoad SL; | |
public Text playerName; | |
public Text InputData;//在Inspector視窗中拖入InputField底下的Text |
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
/// <summary> | |
/// 腳本功能解說: | |
/// 雙人動作判定,可以自定義多種狀態,可以自定義多種動作 | |
/// 城市流程說明: | |
/// 動作偵測函式 -> 判斷玩家一或玩家二 ->判斷玩家狀態(不同狀態不同動作偵測)-> 動作偵測 | |
/// 想要新增動作需要調整: | |
/// 1.PlayerGestureDetect函式裡面Swith case裏頭的姿勢 | |
/// 2.userDetect 裡新增新增動作 | |
/// 想要新增玩家新的狀態需要注意: | |
/// 1.調整動作或新增動作(呈上) |
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
/// <summary> | |
/// 腳本功能說明: | |
/// 角色移動蘑菇頭 | |
/// 互動流程: | |
/// 點擊螢幕 -> 出現UI在點擊位置 -> 按住滑動 -> 蘑菇頭跟著移動 ->角色跟著移動 -> 放開滑鼠(離開螢幕)->ui消失 | |
/// </summary> | |
using System.Collections; | |
using System.Collections.Generic; | |
using UnityEngine; |
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; | |
/// <summary> | |
/// Duck <see langword="abstract"/> . | |
/// </summary> | |
public abstract class Duck { | |
protected FlyBehavior flyBehavior; | |
protected QuackBehavior quackBehavior; | |
public void performQuack() |
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 MallardDuck : Duck | |
{ | |
public MallardDuck() | |
{ | |
quackBehavior = new MuteQuack(); |
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
Shader "Custom/"360ThetaV | |
{ | |
Properties | |
{ | |
_MainTex ("Texture", 2D) = "white" {} | |
} | |
SubShader | |
{ | |
Tags { "RenderType"="Opaque" } |
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 WebCamTest : MonoBehaviour | |
{ | |
public int numberOfCamera = 0; | |
// Use this for initialization | |
void Start() | |
{ |
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; | |
using Newtonsoft.Json; | |
using Newtonsoft.Json.Linq; | |
using System.IO; | |
using System; | |
namespace ThetaV | |
{ | |
/// <summary> |
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; | |
using ThetaV; | |
public class test : MonoBehaviour { | |
// Use this for initialization | |
void Start () { | |
JObject jObject = null; | |
//LoadData.ReadFileFromInternet(jObject); |
OlderNewer