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 Unity.Burst; | |
using Unity.Collections; | |
using Unity.Entities; | |
using Unity.Jobs; | |
using Unity.Physics; | |
using Unity.Physics.Systems; | |
using Unity.Transforms; | |
[UpdateInGroup(typeof(FixedStepSimulationSystemGroup))] | |
[UpdateBefore(typeof(PhysicsSystemGroup))] |
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 System.Collections.Generic; | |
using MEC; | |
public class Bootstrapper : MonoBehaviour | |
{ | |
protected virtual void Awake() | |
{ | |
} |
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 System.Linq; | |
using UniRx; | |
public interface IService | |
{ | |
} | |
public interface IInitializable |
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
public static IObservable<RoomData> LoadLevel(string gymRoom) | |
{ | |
string path = System.IO.Path.Combine(Application.streamingAssetsPath, "Levels"); | |
path = System.IO.Path.Combine(path, gymRoom + ".room"); | |
#if UNITY_ANDROID && !UNITY_EDITOR | |
return ObservableWWW.Get(path) | |
#else | |
return Observable.ReturnUnit() | |
.SubscribeOn(Scheduler.ThreadPool) | |
.Select(_ => System.IO.File.ReadAllText(path)) |
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
/* | |
Check original C code and explanation! | |
*/ | |
using System; | |
using System.Collections.Generic; | |
using UnityEngine; | |
public static class Visibility | |
{ |
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
//all params in normalized units | |
vec3 drawRect(in vec2 st, | |
in vec2 center, | |
in float width, | |
in float height, | |
in float thickness, | |
in vec3 fillColor, | |
in vec3 strokeColor) | |
{ | |
vec3 color = vec3(0); |
This file has been truncated, but you can view the full file.
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
Build target Unity-iPhone | |
CpResource /Applications/Xcode6.0.1.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS8.0.sdk/ResourceRules.plist /Users/evgenipetrov/Library/Developer/Xcode/DerivedData/Unity-iPhone-busbjkfhcrypyycedcyyedevplzw/Build/Products/Debug-iphoneos/ScavengerArena.app/ResourceRules.plist | |
cd /Users/evgenipetrov/Work/Tryad/ScavengerArena/client/ScavengerDuels/XCode | |
export PATH="/Applications/Xcode6.0.1.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin:/Applications/Xcode6.0.1.app/Contents/Developer/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin" | |
builtin-copy -exclude .DS_Store -exclude CVS -exclude .svn -exclude .git -exclude .hg -resolve-src-symlinks /Applications/Xcode6.0.1.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS8.0.sdk/ResourceRules.plist /Users/evgenipetrov/Library/Developer/Xcode/DerivedData/Unity-iPhone-busbjkfhcrypyycedcyyedevplzw/Build/Products/Debug-iphoneos/ScavengerArena.app | |
CompileAssetCatalog /User |
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 DevicesDraw() | |
{ | |
const int NAME_WIDTH = 50; | |
const int IP_WIDTH = 50; | |
GUILayout.BeginHorizontal(); | |
GUILayout.FlexibleSpace(); | |
GUILayout.Label("Devices", EditorStyles.largeLabel); | |
GUILayout.FlexibleSpace(); | |
GUILayout.EndHorizontal(); |
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
#import "TaxiArrivingAnnotation.h" | |
#define SECONDS_IN_A_MINUTE 60 | |
@interface TaxiArrivingAnnotation () | |
@property (nonatomic) NSTimer * timer; | |
@property (nonatomic) NSDate * timeOfArrival; | |
@property (nonatomic, weak) id token1; | |
@property (nonatomic, weak) id token2; | |
@end |