(by @andrestaltz)
If you prefer to watch video tutorials with live-coding, then check out this series I recorded with the same contents as in this article: Egghead.io - Introduction to Reactive Programming.
//Not push first OnNext same ReactiveProperty<T> | |
//Debug.Log("HAHAHA : " + _); not run until Method ChangeCurrent() Call | |
private SubjectProperty<int> _current = new SubjectProperty<int>(); | |
private IDisposable _disposable; | |
public void Start() | |
{ | |
_disposable = _current.Subscribe(_ => | |
{ | |
if (_current.Value > 10) |
// Non Editor code | |
using System.Collections; | |
using System.Collections.Generic; | |
using UnityEngine; | |
public abstract class TrafficLightAttribute : PropertyAttribute | |
{ | |
public bool DrawLabel = true; | |
public string CustomLabel; | |
public bool AlsoDrawDefault; |
(by @andrestaltz)
If you prefer to watch video tutorials with live-coding, then check out this series I recorded with the same contents as in this article: Egghead.io - Introduction to Reactive Programming.
*NameSpace : UpperCameICase
public namespace UnityModule.Sunflower
{
}
*Interface : IUpperCameICase
#if CSHARP_7_OR_LATER | |
#pragma warning disable CS1591 // Missing XML comment for publicly visible type or member | |
using System; | |
using System.Collections.Generic; | |
using UnityEngine; | |
using UnityEngine.AddressableAssets; | |
using UnityEngine.ResourceManagement.ResourceLocations; | |
using UnityEngine.ResourceManagement.ResourceProviders; | |
using UnityEngine.SceneManagement; |
#!/bin/bash | |
set -ue | |
HOST="gitlab.com" | |
TYPE="git" | |
GROUP="yenmoc" | |
AUTHOR="yenmoc" | |
LICENSE="MIT" | |
YEAR=2019 |
MIT License | |
Copyright (c) 2019 yenmoc | |
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: |
# Logs | |
logs | |
*.log | |
npm-debug.log* | |
yarn-debug.log* | |
yarn-error.log* | |
lerna-debug.log* | |
# =============== # | |
# Unity generated # |
#!/bin/bash | |
# store the current dir | |
CUR_DIR=$(pwd) | |
# Let the person running the script know what's going on. | |
echo "Pulling in latest changes for all repositories..." | |
# Find all git repositories and update it to the master latest revision | |
for i in $(find . -name ".git" | cut -c 3-); do |
using System.Linq; | |
using UnityEngine; | |
// ReSharper disable once CheckNamespace | |
namespace Unity.Linq | |
{ | |
public static class TraverseExtension | |
{ | |
public static Vector3 TotalPositionAncestor(this GameObject origin, int level) | |
{ |