Added the project.

This commit is contained in:
Robert Cupisz
2016-11-01 13:25:56 +01:00
parent 93760b331c
commit 947b6de3a5
137 changed files with 33276 additions and 0 deletions

View File

@ -0,0 +1,52 @@
%YAML 1.1
%TAG !u! tag:unity3d.com,2011:
--- !u!1001 &100100000
Prefab:
m_ObjectHideFlags: 1
serializedVersion: 2
m_Modification:
m_TransformParent: {fileID: 0}
m_Modifications: []
m_RemovedComponents: []
m_ParentPrefab: {fileID: 0}
m_RootGameObject: {fileID: 1000010085349158}
m_IsPrefabParent: 1
--- !u!1 &1000010085349158
GameObject:
m_ObjectHideFlags: 0
m_PrefabParentObject: {fileID: 0}
m_PrefabInternal: {fileID: 100100000}
serializedVersion: 4
m_Component:
- 4: {fileID: 4000010739719174}
- 114: {fileID: 114000014191307454}
m_Layer: 0
m_Name: LightManagerFogEllipsoids
m_TagString: Untagged
m_Icon: {fileID: 0}
m_NavMeshLayer: 0
m_StaticEditorFlags: 0
m_IsActive: 1
--- !u!4 &4000010739719174
Transform:
m_ObjectHideFlags: 1
m_PrefabParentObject: {fileID: 0}
m_PrefabInternal: {fileID: 100100000}
m_GameObject: {fileID: 1000010085349158}
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
m_LocalPosition: {x: -8.9284725, y: 3.427047, z: -0.21317804}
m_LocalScale: {x: 1, y: 1, z: 1}
m_Children: []
m_Father: {fileID: 0}
m_RootOrder: 0
--- !u!114 &114000014191307454
MonoBehaviour:
m_ObjectHideFlags: 1
m_PrefabParentObject: {fileID: 0}
m_PrefabInternal: {fileID: 100100000}
m_GameObject: {fileID: 1000010085349158}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: ed243fe90a2e7384f9f6f59acf71e19b, type: 3}
m_Name:
m_EditorClassIdentifier:

View File

@ -0,0 +1,8 @@
fileFormatVersion: 2
guid: 88ddc3de348eb9044aa7d0614809939e
timeCreated: 1454679592
licenseType: Pro
NativeFormatImporter:
userData:
assetBundleName:
assetBundleVariant:

View File

@ -0,0 +1,52 @@
%YAML 1.1
%TAG !u! tag:unity3d.com,2011:
--- !u!1001 &100100000
Prefab:
m_ObjectHideFlags: 1
serializedVersion: 2
m_Modification:
m_TransformParent: {fileID: 0}
m_Modifications: []
m_RemovedComponents: []
m_ParentPrefab: {fileID: 0}
m_RootGameObject: {fileID: 1000011378053400}
m_IsPrefabParent: 1
--- !u!1 &1000011378053400
GameObject:
m_ObjectHideFlags: 0
m_PrefabParentObject: {fileID: 0}
m_PrefabInternal: {fileID: 100100000}
serializedVersion: 4
m_Component:
- 4: {fileID: 4000012687929690}
- 114: {fileID: 114000010476117714}
m_Layer: 0
m_Name: LightManagerFogLights
m_TagString: Untagged
m_Icon: {fileID: 0}
m_NavMeshLayer: 0
m_StaticEditorFlags: 0
m_IsActive: 1
--- !u!4 &4000012687929690
Transform:
m_ObjectHideFlags: 1
m_PrefabParentObject: {fileID: 0}
m_PrefabInternal: {fileID: 100100000}
m_GameObject: {fileID: 1000011378053400}
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
m_LocalPosition: {x: -8.9284725, y: 3.427047, z: -0.21317804}
m_LocalScale: {x: 1, y: 1, z: 1}
m_Children: []
m_Father: {fileID: 0}
m_RootOrder: 0
--- !u!114 &114000010476117714
MonoBehaviour:
m_ObjectHideFlags: 1
m_PrefabParentObject: {fileID: 0}
m_PrefabInternal: {fileID: 100100000}
m_GameObject: {fileID: 1000011378053400}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: 01ae89c4c08f92f4fb90537335efa1ac, type: 3}
m_Name:
m_EditorClassIdentifier:

View File

@ -0,0 +1,8 @@
fileFormatVersion: 2
guid: a81286e4a5a12aa41825352231edaae9
timeCreated: 1454679202
licenseType: Pro
NativeFormatImporter:
userData:
assetBundleName:
assetBundleVariant:

View File

@ -0,0 +1,9 @@
fileFormatVersion: 2
guid: de005349eca348945bb8d27456a32d16
folderAsset: yes
timeCreated: 1477748682
licenseType: Pro
DefaultImporter:
userData:
assetBundleName:
assetBundleVariant:

View File

@ -0,0 +1,45 @@
using UnityEngine;
using System.Collections.Generic;
public class LightManager<T> : MonoBehaviour
{
static LightManager<T> s_Instance;
HashSet<T> m_Container = new HashSet<T>();
static LightManager<T> Instance
{
get
{
if (s_Instance != null)
return s_Instance;
s_Instance = (LightManager<T>) FindObjectOfType(typeof(LightManager<T>));
return s_Instance;
}
}
public static HashSet<T> Get()
{
LightManager<T> instance = Instance;
return instance == null ? new HashSet<T>() : instance.m_Container;
}
public static bool Add(T t)
{
LightManager<T> instance = Instance;
if (instance == null)
return false;
instance.m_Container.Add(t);
return true;
}
public static void Remove(T t)
{
LightManager<T> instance = Instance;
if (instance == null)
return;
instance.m_Container.Remove(t);
}
}

View File

@ -0,0 +1,12 @@
fileFormatVersion: 2
guid: 172fcfd4ae7b9874ea684dc927b34a73
timeCreated: 1454671716
licenseType: Pro
MonoImporter:
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:
assetBundleName:
assetBundleVariant:

View File

@ -0,0 +1,4 @@
public class LightManagerFogEllipsoids : LightManager<FogEllipsoid>
{
}

View File

@ -0,0 +1,12 @@
fileFormatVersion: 2
guid: ed243fe90a2e7384f9f6f59acf71e19b
timeCreated: 1454679513
licenseType: Pro
MonoImporter:
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:
assetBundleName:
assetBundleVariant:

View File

@ -0,0 +1,4 @@
public class LightManagerFogLights : LightManager<FogLight>
{
}

View File

@ -0,0 +1,12 @@
fileFormatVersion: 2
guid: 01ae89c4c08f92f4fb90537335efa1ac
timeCreated: 1454678969
licenseType: Pro
MonoImporter:
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:
assetBundleName:
assetBundleVariant: