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 IEnumerator InitAsServer() | |
{ | |
Debug.Log("Acting as host"); | |
NetworkManager.singleton.serverBindToIP = true; | |
NetworkManager.singleton.serverBindAddress = LocalIp; | |
・ | |
・ | |
} |
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
// Copyright (c) Microsoft Corporation. All rights reserved. | |
// Licensed under the MIT License. See LICENSE in the project root for license information. | |
using System; | |
using System.Collections; | |
using System.Collections.Generic; | |
using UnityEngine; | |
using UnityEngine.Networking; | |
#if !UNITY_EDITOR && UNITY_WSA |
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
// Copyright(c) 2018 Takahiro Miyaura | |
// Released under the MIT license | |
// http://opensource.org/licenses/mit-license.php | |
using System; | |
using System.Collections.Generic; | |
using System.IO; | |
using System.Linq; | |
using HoloToolkit.Unity; | |
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
//Updateメソッド内で呼び出される自分自身のプレーヤーの制御に使用 | |
public abstract void LocalPlayerUpdate(); | |
//自分自身のプレーヤーの初期化処理で使用 | |
public abstract void InitializeLocalPlayer(); | |
//他のプレーヤーの初期化処理で使用 | |
public abstract void InitializeRemotePlayer(); |
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
// Copyright(c) 2018 Takahiro Miyaura | |
// Released under the MIT license | |
// http://opensource.org/licenses/mit-license.php | |
private AudioSource _audioSource; | |
private string _microphone; | |
private void Start() | |
{ | |
_microphone = Microphone.devices[0]; |
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
// Copyright(c) 2017 Takahiro Miyaura | |
// Released under the MIT license | |
// http://opensource.org/licenses/mit-license.php | |
void Start () | |
{ | |
//タッチパッド系のイベントを設定する | |
MotionControllerManager.Instance.TouchpadTouch += TouchpadTouch; | |
MotionControllerManager.Instance.TouchpadHold+= TouchpadManupilate; | |
MotionControllerManager.Instance.TouchpadUp+= TouchpadRelease; |
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
//タッチパッドや、親指スティックの操作を行うと発生。 | |
void OnInputPositionChanged(InputPositionEventData eventData); |
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
#if UNITY_WSA && UNITY_2017_2_OR_NEWER | |
... | |
#endif |
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
// Copyright(c) 2017 Takahiro Miyaura | |
// Released under the MIT license | |
// http://opensource.org/licenses/mit-license.php | |
public override void OnSurfaceAddedOrUpdated(SpatialMeshInfo surface, Model generatedModel) | |
{ | |
var isNew = false; | |
StaticModel staticModel = null; | |
//check already created by Id. | |
var node = environmentNode.GetChild(surface.SurfaceId, false); |
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
// Copyright(c) 2017 Takahiro Miyaura | |
// Released under the MIT license | |
// http://opensource.org/licenses/mit-license.php | |
using HUX.Utility; | |
using UnityEngine; | |
[RequireComponent(typeof(LocalHandInput))] | |
public class ManupilateCube : MonoBehaviour | |
{ |
NewerOlder