ようこそ
ざっくりいうと、2Dのバーチャルオフィスだよ! https://gather.town
public struct CustomTickTimer : INetworkStruct | |
{ | |
private int _target; | |
private int _initialTick; | |
public bool Expired(NetworkRunner runner) => runner.IsRunning && _target > 0 | |
&& (Tick)_target <= runner.Simulation.Tick; | |
public bool IsRunning => _target > 0; |
ようこそ
ざっくりいうと、2Dのバーチャルオフィスだよ! https://gather.town
MV(R)Pアーキテクチャを採用していたよ。 http://adarapata.hatenablog.com/entry/2018/08/16/001708
アーキテクチャを決めて早三か月、そろそろ良いところと改善できそうなところが見えてきたので文字に起こしてまとめておきたい所存
[RequireComponent(typeof(Camera))] | |
public class ClickRayCastObservable : MonoBehaviour | |
{ | |
public LayerMask targetLayer; | |
public float distance; | |
public Mouse moueButton; | |
private Subject<RaycastHit> raycastStream = new Subject<RaycastHit>(); | |
public IObservable<RaycastHit> ClickRaycastObservable |
using Arbor; | |
using UniRx; | |
using UniRx.Triggers; | |
namespace ArborExtention | |
{ | |
public class ObservableStateBehaviour : StateBehaviour | |
{ | |
private Subject<Unit> stateBeginStream = new Subject<Unit> (); |
using Arbor; | |
using UniRx; | |
[BuiltInBehaviour] | |
public class ObserveTransition : StateBehaviour | |
{ | |
public StateBehaviour target; | |
public string methodName = ""; | |
public StateLink next; |