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
[*] | |
charset = utf-8 | |
end_of_line = lf | |
trim_trailing_whitespace = false | |
insert_final_newline = false | |
indent_style = space | |
indent_size = 4 | |
# Microsoft .NET properties |
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
/* | |
MIT License | |
Copyright (c) 2018 ANURAG DEVANAPALLY | |
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: | |
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. | |
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE S |
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 UniRx; | |
using UnityEditor; | |
using UnityEngine; | |
using Utf8Json; | |
public class ParseBigJsonWithUtf8Json : MonoBehaviour | |
{ | |
public void ParseSmallJson() | |
{ | |
ObservableWWW.Get("https://public.bitbank.cc/btc_jpy/transactions") |
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 UniRx; | |
using UnityEditor; | |
using UnityEngine; | |
/// <summary> | |
/// Unityエディタ上からGameビューのスクリーンショットを撮るEditor拡張 | |
/// </summary> | |
public class CaptureScreenshotFromEditor : Editor | |
{ |
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 Photon; | |
using PhotonRx; | |
using System.Linq; | |
using UniRx; | |
using UniRx.Toolkit; | |
using UniRx.Triggers; | |
using UnityEngine; | |
namespace Jagapippi.Network | |
{ |
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
namespace UniRx | |
{ | |
public static class PhotonExtensions | |
{ | |
public static IObservable<Tuple<byte, object, int>> AsObservable(this PhotonNetwork.EventCallback eventCallback) | |
{ | |
return Observable.FromEvent<PhotonNetwork.EventCallback, Tuple<byte, object, int>>( | |
h => (x, y, z) => h(Tuple.Create(x, y, z)), | |
h => PhotonNetwork.OnEventCall += h, | |
h => PhotonNetwork.OnEventCall -= h |
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.Generic; | |
using UnityEngine; | |
using UnityEngine.UI; | |
using UniRx; | |
public class DataBindingSample1 : MonoBehaviour | |
{ | |
// NOTE: newするときに初期値を与えることが可能 | |
public ReactiveProperty<int> _intProperty = new ReactiveProperty<int>(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
using System; | |
using UnityEngine; | |
using UniRx; | |
public class WaitForObservable : MonoBehaviour | |
{ | |
[SerializeField] | |
private Window _window; | |
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 UnityEngine; | |
using UnityEngine.EventSystems; | |
using UnityEngine.UI; | |
using UniRx; | |
using UniRx.Triggers; | |
public class Drag : MonoBehaviour | |
{ | |
public RectTransform target; | |
public bool horizontal = true; |
NewerOlder