graph chart引入&骑行结果弹窗
This commit is contained in:
1 parent
40d118cea3
commit
96f3644b5b
2374 files changed
+485161
-2410
No files matched your search
File diff suppressed because it is too large.
Load diff
@@ -0,0 +1,8 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 94537e28f05484948ab1cdb3ca3cc588
|
||||
timeCreated: 1560542081
|
||||
licenseType: Store
|
||||
DefaultImporter:
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
@@ -0,0 +1,18 @@
|
||||
#define Graph_And_Chart_PRO
|
||||
using UnityEngine;
|
||||
using System.Collections;
|
||||
using ChartAndGraph;
|
||||
|
||||
public class BarChartFeed : MonoBehaviour {
|
||||
void Start () {
|
||||
BarChart barChart = GetComponent<BarChart>();
|
||||
if (barChart != null)
|
||||
{
|
||||
barChart.DataSource.SetValue("Player 1", "Value 1", Random.value * 20);
|
||||
barChart.DataSource.SlideValue("Player 2", "Value 1", Random.value * 20, 40f);
|
||||
}
|
||||
}
|
||||
private void Update()
|
||||
{
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,12 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 0adffba478642274dbb910f69c3e6e71
|
||||
timeCreated: 1481819940
|
||||
licenseType: Store
|
||||
MonoImporter:
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
@@ -0,0 +1,709 @@
|
||||
%YAML 1.1
|
||||
%TAG !u! tag:unity3d.com,2011:
|
||||
--- !u!29 &1
|
||||
OcclusionCullingSettings:
|
||||
m_ObjectHideFlags: 0
|
||||
serializedVersion: 2
|
||||
m_OcclusionBakeSettings:
|
||||
smallestOccluder: 5
|
||||
smallestHole: 0.25
|
||||
backfaceThreshold: 100
|
||||
m_SceneGUID: 00000000000000000000000000000000
|
||||
m_OcclusionCullingData: {fileID: 0}
|
||||
--- !u!104 &2
|
||||
RenderSettings:
|
||||
m_ObjectHideFlags: 0
|
||||
serializedVersion: 9
|
||||
m_Fog: 0
|
||||
m_FogColor: {r: 0.5, g: 0.5, b: 0.5, a: 1}
|
||||
m_FogMode: 3
|
||||
m_FogDensity: 0.01
|
||||
m_LinearFogStart: 0
|
||||
m_LinearFogEnd: 300
|
||||
m_AmbientSkyColor: {r: 0.212, g: 0.227, b: 0.259, a: 1}
|
||||
m_AmbientEquatorColor: {r: 0.114, g: 0.125, b: 0.133, a: 1}
|
||||
m_AmbientGroundColor: {r: 0.047, g: 0.043, b: 0.035, a: 1}
|
||||
m_AmbientIntensity: 1
|
||||
m_AmbientMode: 0
|
||||
m_SubtractiveShadowColor: {r: 0.42, g: 0.478, b: 0.627, a: 1}
|
||||
m_SkyboxMaterial: {fileID: 10304, guid: 0000000000000000f000000000000000, type: 0}
|
||||
m_HaloStrength: 0.5
|
||||
m_FlareStrength: 1
|
||||
m_FlareFadeSpeed: 3
|
||||
m_HaloTexture: {fileID: 0}
|
||||
m_SpotCookie: {fileID: 10001, guid: 0000000000000000e000000000000000, type: 0}
|
||||
m_DefaultReflectionMode: 0
|
||||
m_DefaultReflectionResolution: 128
|
||||
m_ReflectionBounces: 1
|
||||
m_ReflectionIntensity: 1
|
||||
m_CustomReflection: {fileID: 0}
|
||||
m_Sun: {fileID: 0}
|
||||
m_IndirectSpecularColor: {r: 0.44657826, g: 0.49641263, b: 0.57481676, a: 1}
|
||||
m_UseRadianceAmbientProbe: 0
|
||||
--- !u!157 &3
|
||||
LightmapSettings:
|
||||
m_ObjectHideFlags: 0
|
||||
serializedVersion: 11
|
||||
m_GIWorkflowMode: 0
|
||||
m_GISettings:
|
||||
serializedVersion: 2
|
||||
m_BounceScale: 1
|
||||
m_IndirectOutputScale: 1
|
||||
m_AlbedoBoost: 1
|
||||
m_EnvironmentLightingMode: 0
|
||||
m_EnableBakedLightmaps: 1
|
||||
m_EnableRealtimeLightmaps: 1
|
||||
m_LightmapEditorSettings:
|
||||
serializedVersion: 12
|
||||
m_Resolution: 2
|
||||
m_BakeResolution: 40
|
||||
m_AtlasSize: 1024
|
||||
m_AO: 1
|
||||
m_AOMaxDistance: 1
|
||||
m_CompAOExponent: 1
|
||||
m_CompAOExponentDirect: 0
|
||||
m_ExtractAmbientOcclusion: 0
|
||||
m_Padding: 2
|
||||
m_LightmapParameters: {fileID: 0}
|
||||
m_LightmapsBakeMode: 1
|
||||
m_TextureCompression: 1
|
||||
m_FinalGather: 0
|
||||
m_FinalGatherFiltering: 1
|
||||
m_FinalGatherRayCount: 256
|
||||
m_ReflectionCompression: 2
|
||||
m_MixedBakeMode: 1
|
||||
m_BakeBackend: 0
|
||||
m_PVRSampling: 1
|
||||
m_PVRDirectSampleCount: 32
|
||||
m_PVRSampleCount: 512
|
||||
m_PVRBounces: 2
|
||||
m_PVREnvironmentSampleCount: 512
|
||||
m_PVREnvironmentReferencePointCount: 2048
|
||||
m_PVRFilteringMode: 0
|
||||
m_PVRDenoiserTypeDirect: 0
|
||||
m_PVRDenoiserTypeIndirect: 0
|
||||
m_PVRDenoiserTypeAO: 0
|
||||
m_PVRFilterTypeDirect: 0
|
||||
m_PVRFilterTypeIndirect: 0
|
||||
m_PVRFilterTypeAO: 0
|
||||
m_PVREnvironmentMIS: 0
|
||||
m_PVRCulling: 1
|
||||
m_PVRFilteringGaussRadiusDirect: 1
|
||||
m_PVRFilteringGaussRadiusIndirect: 5
|
||||
m_PVRFilteringGaussRadiusAO: 2
|
||||
m_PVRFilteringAtrousPositionSigmaDirect: 0.5
|
||||
m_PVRFilteringAtrousPositionSigmaIndirect: 2
|
||||
m_PVRFilteringAtrousPositionSigmaAO: 1
|
||||
m_ExportTrainingData: 0
|
||||
m_TrainingDataDestination: TrainingData
|
||||
m_LightProbeSampleCountMultiplier: 4
|
||||
m_LightingDataAsset: {fileID: 0}
|
||||
m_UseShadowmask: 0
|
||||
--- !u!196 &4
|
||||
NavMeshSettings:
|
||||
serializedVersion: 2
|
||||
m_ObjectHideFlags: 0
|
||||
m_BuildSettings:
|
||||
serializedVersion: 2
|
||||
agentTypeID: 0
|
||||
agentRadius: 0.5
|
||||
agentHeight: 2
|
||||
agentSlope: 45
|
||||
agentClimb: 0.4
|
||||
ledgeDropHeight: 0
|
||||
maxJumpAcrossDistance: 0
|
||||
minRegionArea: 2
|
||||
manualCellSize: 0
|
||||
cellSize: 0.16666667
|
||||
manualTileSize: 0
|
||||
tileSize: 256
|
||||
accuratePlacement: 0
|
||||
debug:
|
||||
m_Flags: 0
|
||||
m_NavMeshData: {fileID: 0}
|
||||
--- !u!1 &749952536
|
||||
GameObject:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
serializedVersion: 6
|
||||
m_Component:
|
||||
- component: {fileID: 749952542}
|
||||
- component: {fileID: 749952541}
|
||||
- component: {fileID: 749952540}
|
||||
- component: {fileID: 749952539}
|
||||
- component: {fileID: 749952538}
|
||||
- component: {fileID: 749952537}
|
||||
- component: {fileID: 749952543}
|
||||
- component: {fileID: 749952544}
|
||||
m_Layer: 0
|
||||
m_Name: Bar3DSimple
|
||||
m_TagString: Untagged
|
||||
m_Icon: {fileID: 0}
|
||||
m_NavMeshLayer: 0
|
||||
m_StaticEditorFlags: 0
|
||||
m_IsActive: 1
|
||||
--- !u!114 &749952537
|
||||
MonoBehaviour:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 749952536}
|
||||
m_Enabled: 1
|
||||
m_EditorHideFlags: 0
|
||||
m_Script: {fileID: 11500000, guid: 8fa3c1507f66ca24fa9c929b5fae69a5, type: 3}
|
||||
m_Name:
|
||||
m_EditorClassIdentifier:
|
||||
Curve:
|
||||
serializedVersion: 2
|
||||
m_Curve:
|
||||
- serializedVersion: 3
|
||||
time: 0
|
||||
value: 0
|
||||
inSlope: 2
|
||||
outSlope: 2
|
||||
tangentMode: 0
|
||||
weightedMode: 0
|
||||
inWeight: 0.33333334
|
||||
outWeight: 0.33333334
|
||||
- serializedVersion: 3
|
||||
time: 1
|
||||
value: 1
|
||||
inSlope: 0
|
||||
outSlope: 0
|
||||
tangentMode: 0
|
||||
weightedMode: 0
|
||||
inWeight: 0.33333334
|
||||
outWeight: 0.33333334
|
||||
m_PreInfinity: 2
|
||||
m_PostInfinity: 2
|
||||
m_RotationOrder: 4
|
||||
AnimateOnStart: 1
|
||||
AnimationTime: 3
|
||||
--- !u!114 &749952538
|
||||
MonoBehaviour:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 749952536}
|
||||
m_Enabled: 1
|
||||
m_EditorHideFlags: 0
|
||||
m_Script: {fileID: 11500000, guid: 683c1c28d013cce4c9128c952dbdca81, type: 3}
|
||||
m_Name:
|
||||
m_EditorClassIdentifier:
|
||||
textPrefab: {fileID: 0}
|
||||
textFormat:
|
||||
prefix:
|
||||
suffix:
|
||||
customFormat:
|
||||
fontSize: 4
|
||||
fontSharpness: 3
|
||||
seperation: 0
|
||||
location:
|
||||
Breadth: 0
|
||||
Depth: -0.95
|
||||
alignment: 1
|
||||
visibleLabels: 1
|
||||
--- !u!114 &749952539
|
||||
MonoBehaviour:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 749952536}
|
||||
m_Enabled: 1
|
||||
m_EditorHideFlags: 0
|
||||
m_Script: {fileID: 11500000, guid: 7598682dc3bb9174d9546fe226cab95a, type: 3}
|
||||
m_Name:
|
||||
m_EditorClassIdentifier:
|
||||
SimpleView: 1
|
||||
format: 0
|
||||
depth:
|
||||
Automatic: 0
|
||||
Value: 0
|
||||
mainDivisions:
|
||||
messure: 0
|
||||
unitsPerDivision: 0
|
||||
total: 3
|
||||
material: {fileID: 2100000, guid: e65ebfd404010624fb315bf790f7eebe, type: 2}
|
||||
materialTiling:
|
||||
EnableTiling: 0
|
||||
TileFactor: 100
|
||||
markBackLength:
|
||||
Automatic: 1
|
||||
Value: 0.5
|
||||
markLength:
|
||||
Automatic: 0
|
||||
Value: -0.41
|
||||
markDepth:
|
||||
Automatic: 1
|
||||
Value: 0.5
|
||||
markThickness: 0.17
|
||||
textPrefab: {fileID: 0}
|
||||
textPrefix:
|
||||
textSuffix:
|
||||
fractionDigits: 2
|
||||
fontSize: 4
|
||||
fontSharpness: 3
|
||||
textDepth: -0.18
|
||||
textSeperation: -0.71
|
||||
alignment: 1
|
||||
subDivisions:
|
||||
messure: 0
|
||||
unitsPerDivision: 0
|
||||
total: 3
|
||||
material: {fileID: 2100000, guid: a47d052d9a1992e4495892ee553abd96, type: 2}
|
||||
materialTiling:
|
||||
EnableTiling: 0
|
||||
TileFactor: 100
|
||||
markBackLength:
|
||||
Automatic: 1
|
||||
Value: 0.5
|
||||
markLength:
|
||||
Automatic: 0
|
||||
Value: -0.41
|
||||
markDepth:
|
||||
Automatic: 1
|
||||
Value: 0.5
|
||||
markThickness: 0.17
|
||||
textPrefab: {fileID: 0}
|
||||
textPrefix:
|
||||
textSuffix:
|
||||
fractionDigits: 2
|
||||
fontSize: 4
|
||||
fontSharpness: 3
|
||||
textDepth: -0.18
|
||||
textSeperation: -0.71
|
||||
alignment: 1
|
||||
--- !u!114 &749952540
|
||||
MonoBehaviour:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 749952536}
|
||||
m_Enabled: 1
|
||||
m_EditorHideFlags: 0
|
||||
m_Script: {fileID: 11500000, guid: 5eb3e26fd06b41d4baa022120f5cd617, type: 3}
|
||||
m_Name:
|
||||
m_EditorClassIdentifier:
|
||||
textPrefab: {fileID: 114000012995897278, guid: 06f80cc0cc8c2fe409d74c038c3e5cb2,
|
||||
type: 3}
|
||||
textFormat:
|
||||
prefix:
|
||||
suffix:
|
||||
customFormat:
|
||||
fontSize: 7
|
||||
fontSharpness: 3
|
||||
seperation: 0.43
|
||||
location:
|
||||
Breadth: 0
|
||||
Depth: 0
|
||||
alignment: 0
|
||||
fractionDigits: 0
|
||||
--- !u!114 &749952541
|
||||
MonoBehaviour:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 749952536}
|
||||
m_Enabled: 1
|
||||
m_EditorHideFlags: 0
|
||||
m_Script: {fileID: 11500000, guid: 82d167234d2aa7746a9618de50700879, type: 3}
|
||||
m_Name:
|
||||
m_EditorClassIdentifier:
|
||||
mPreviewObject: {fileID: 0}
|
||||
OnRedraw:
|
||||
m_PersistentCalls:
|
||||
m_Calls: []
|
||||
keepOrthoSize: 0
|
||||
paperEffectText: 0
|
||||
vRSpaceText: 0
|
||||
vRSpaceScale: 0.1
|
||||
maintainLabelSize: 0
|
||||
viewType: 0
|
||||
negativeBars: 0
|
||||
stacked: 0
|
||||
BarClicked:
|
||||
m_PersistentCalls:
|
||||
m_Calls: []
|
||||
BarHovered:
|
||||
m_PersistentCalls:
|
||||
m_Calls: []
|
||||
NonHovered:
|
||||
m_PersistentCalls:
|
||||
m_Calls: []
|
||||
Data:
|
||||
mCategories:
|
||||
- Name: Player 1
|
||||
Materials:
|
||||
Normal: {fileID: 2100000, guid: 6b3861ccd1700524181b12bfc1abb5e9, type: 2}
|
||||
Hover: {r: 1, g: 1, b: 1, a: 1}
|
||||
Selected: {r: 0, g: 0, b: 0, a: 0}
|
||||
- Name: Player 2
|
||||
Materials:
|
||||
Normal: {fileID: 2100000, guid: 704c021e90a4e044bade2523a5df91cc, type: 2}
|
||||
Hover: {r: 1, g: 1, b: 1, a: 0}
|
||||
Selected: {r: 0, g: 0, b: 0, a: 0}
|
||||
- Name: Player 3
|
||||
Materials:
|
||||
Normal: {fileID: 2100000, guid: 95a14eb97d272ef42b599eb5e5c01e66, type: 2}
|
||||
Hover: {r: 1, g: 1, b: 1, a: 0}
|
||||
Selected: {r: 0, g: 0, b: 0, a: 0}
|
||||
mGroups:
|
||||
- Value 1
|
||||
- Value 2
|
||||
- Value 3
|
||||
mData:
|
||||
- GroupName: Value 1
|
||||
ColumnName: Player 1
|
||||
Amount: 4
|
||||
- GroupName: Value 1
|
||||
ColumnName: Player 2
|
||||
Amount: 2
|
||||
- GroupName: Value 1
|
||||
ColumnName: Player 3
|
||||
Amount: 1
|
||||
- GroupName: Value 2
|
||||
ColumnName: Player 1
|
||||
Amount: 8
|
||||
- GroupName: Value 2
|
||||
ColumnName: Player 2
|
||||
Amount: 5
|
||||
- GroupName: Value 2
|
||||
ColumnName: Player 3
|
||||
Amount: 4
|
||||
- GroupName: Value 3
|
||||
ColumnName: Player 1
|
||||
Amount: 9
|
||||
- GroupName: Value 3
|
||||
ColumnName: Player 2
|
||||
Amount: 7
|
||||
- GroupName: Value 3
|
||||
ColumnName: Player 3
|
||||
Amount: 8
|
||||
automaticMaxValue: 1
|
||||
maxValue: 10
|
||||
automaticMinValue: 0
|
||||
minValue: 0
|
||||
transitionTimeBetaFeature: -1
|
||||
heightRatio: 5
|
||||
totalWidth: 7.32
|
||||
totalDepth: 6.14
|
||||
textCamera: {fileID: 0}
|
||||
textIdleDistance: 20
|
||||
barPrefab: {fileID: 1000010663314880, guid: 3ab3b6371089ba543873a39cf6b5291e, type: 3}
|
||||
AxisSeperation:
|
||||
Breadth: 1.63
|
||||
Depth: 0.67
|
||||
barSeperation:
|
||||
Breadth: 1.63
|
||||
Depth: 0
|
||||
groupSeperation:
|
||||
Breadth: 0
|
||||
Depth: 2
|
||||
barSize:
|
||||
Breadth: 0.8
|
||||
Depth: 0.8
|
||||
--- !u!4 &749952542
|
||||
Transform:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 749952536}
|
||||
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
|
||||
m_LocalPosition: {x: 0, y: 0, z: 0}
|
||||
m_LocalScale: {x: 1, y: 1, z: 1}
|
||||
m_Children:
|
||||
- {fileID: 1551585147}
|
||||
m_Father: {fileID: 0}
|
||||
m_RootOrder: 2
|
||||
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
||||
--- !u!114 &749952543
|
||||
MonoBehaviour:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 749952536}
|
||||
m_Enabled: 1
|
||||
m_EditorHideFlags: 0
|
||||
m_Script: {fileID: 11500000, guid: 0adffba478642274dbb910f69c3e6e71, type: 3}
|
||||
m_Name:
|
||||
m_EditorClassIdentifier:
|
||||
--- !u!114 &749952544
|
||||
MonoBehaviour:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 749952536}
|
||||
m_Enabled: 1
|
||||
m_EditorHideFlags: 0
|
||||
m_Script: {fileID: 11500000, guid: 8a5935733d0eb5b48ba1db228c83f0f0, type: 3}
|
||||
m_Name:
|
||||
m_EditorClassIdentifier:
|
||||
textPrefab: {fileID: 0}
|
||||
textFormat:
|
||||
prefix:
|
||||
suffix:
|
||||
customFormat:
|
||||
fontSize: 7
|
||||
fontSharpness: 3
|
||||
seperation: -5.08
|
||||
location:
|
||||
Breadth: 1.43
|
||||
Depth: 0
|
||||
alignment: 1
|
||||
--- !u!1 &1551585146
|
||||
GameObject:
|
||||
m_ObjectHideFlags: 27
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
serializedVersion: 6
|
||||
m_Component:
|
||||
- component: {fileID: 1551585147}
|
||||
- component: {fileID: 1551585149}
|
||||
- component: {fileID: 1551585148}
|
||||
m_Layer: 0
|
||||
m_Name: textController
|
||||
m_TagString: Untagged
|
||||
m_Icon: {fileID: 0}
|
||||
m_NavMeshLayer: 0
|
||||
m_StaticEditorFlags: 0
|
||||
m_IsActive: 1
|
||||
--- !u!224 &1551585147
|
||||
RectTransform:
|
||||
m_ObjectHideFlags: 27
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 1551585146}
|
||||
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
|
||||
m_LocalPosition: {x: 0, y: 0, z: 0}
|
||||
m_LocalScale: {x: 1, y: 1, z: 1}
|
||||
m_Children: []
|
||||
m_Father: {fileID: 749952542}
|
||||
m_RootOrder: 0
|
||||
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
||||
m_AnchorMin: {x: 0.5, y: 0.5}
|
||||
m_AnchorMax: {x: 0.5, y: 0.5}
|
||||
m_AnchoredPosition: {x: 0, y: 0}
|
||||
m_SizeDelta: {x: 100, y: 100}
|
||||
m_Pivot: {x: 0.5, y: 0.5}
|
||||
--- !u!114 &1551585148
|
||||
MonoBehaviour:
|
||||
m_ObjectHideFlags: 27
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 1551585146}
|
||||
m_Enabled: 1
|
||||
m_EditorHideFlags: 0
|
||||
m_Script: {fileID: 11500000, guid: f8c8bf670921e114bbea10f451c86392, type: 3}
|
||||
m_Name:
|
||||
m_EditorClassIdentifier:
|
||||
Camera: {fileID: 0}
|
||||
PlaneDistance: 20
|
||||
--- !u!114 &1551585149
|
||||
MonoBehaviour:
|
||||
m_ObjectHideFlags: 27
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 1551585146}
|
||||
m_Enabled: 1
|
||||
m_EditorHideFlags: 0
|
||||
m_Script: {fileID: 11500000, guid: 55b5a59897c650342a9b23ff348a9992, type: 3}
|
||||
m_Name:
|
||||
m_EditorClassIdentifier:
|
||||
--- !u!1 &1603075219
|
||||
GameObject:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
serializedVersion: 6
|
||||
m_Component:
|
||||
- component: {fileID: 1603075224}
|
||||
- component: {fileID: 1603075223}
|
||||
- component: {fileID: 1603075221}
|
||||
- component: {fileID: 1603075220}
|
||||
m_Layer: 0
|
||||
m_Name: Main Camera
|
||||
m_TagString: MainCamera
|
||||
m_Icon: {fileID: 0}
|
||||
m_NavMeshLayer: 0
|
||||
m_StaticEditorFlags: 0
|
||||
m_IsActive: 1
|
||||
--- !u!81 &1603075220
|
||||
AudioListener:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 1603075219}
|
||||
m_Enabled: 1
|
||||
--- !u!124 &1603075221
|
||||
Behaviour:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 1603075219}
|
||||
m_Enabled: 1
|
||||
--- !u!20 &1603075223
|
||||
Camera:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 1603075219}
|
||||
m_Enabled: 1
|
||||
serializedVersion: 2
|
||||
m_ClearFlags: 1
|
||||
m_BackGroundColor: {r: 0.19215687, g: 0.3019608, b: 0.4745098, a: 0}
|
||||
m_projectionMatrixMode: 1
|
||||
m_GateFitMode: 2
|
||||
m_FOVAxisMode: 0
|
||||
m_SensorSize: {x: 36, y: 24}
|
||||
m_LensShift: {x: 0, y: 0}
|
||||
m_FocalLength: 50
|
||||
m_NormalizedViewPortRect:
|
||||
serializedVersion: 2
|
||||
x: 0
|
||||
y: 0
|
||||
width: 1
|
||||
height: 1
|
||||
near clip plane: 0.3
|
||||
far clip plane: 1000
|
||||
field of view: 60
|
||||
orthographic: 0
|
||||
orthographic size: 5
|
||||
m_Depth: -1
|
||||
m_CullingMask:
|
||||
serializedVersion: 2
|
||||
m_Bits: 4294967295
|
||||
m_RenderingPath: -1
|
||||
m_TargetTexture: {fileID: 0}
|
||||
m_TargetDisplay: 0
|
||||
m_TargetEye: 3
|
||||
m_HDR: 0
|
||||
m_AllowMSAA: 1
|
||||
m_AllowDynamicResolution: 0
|
||||
m_ForceIntoRT: 0
|
||||
m_OcclusionCulling: 1
|
||||
m_StereoConvergence: 10
|
||||
m_StereoSeparation: 0.022
|
||||
--- !u!4 &1603075224
|
||||
Transform:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 1603075219}
|
||||
m_LocalRotation: {x: 0.25196388, y: -0.19126377, z: 0.050873477, w: 0.9472826}
|
||||
m_LocalPosition: {x: 7.5, y: 8.1, z: -6.2}
|
||||
m_LocalScale: {x: 1, y: 1, z: 1}
|
||||
m_Children: []
|
||||
m_Father: {fileID: 0}
|
||||
m_RootOrder: 0
|
||||
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
||||
--- !u!1 &2013333183
|
||||
GameObject:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
serializedVersion: 6
|
||||
m_Component:
|
||||
- component: {fileID: 2013333185}
|
||||
- component: {fileID: 2013333184}
|
||||
m_Layer: 0
|
||||
m_Name: Directional Light
|
||||
m_TagString: Untagged
|
||||
m_Icon: {fileID: 0}
|
||||
m_NavMeshLayer: 0
|
||||
m_StaticEditorFlags: 0
|
||||
m_IsActive: 1
|
||||
--- !u!108 &2013333184
|
||||
Light:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 2013333183}
|
||||
m_Enabled: 1
|
||||
serializedVersion: 10
|
||||
m_Type: 1
|
||||
m_Shape: 0
|
||||
m_Color: {r: 1, g: 0.95686275, b: 0.8392157, a: 1}
|
||||
m_Intensity: 1
|
||||
m_Range: 10
|
||||
m_SpotAngle: 30
|
||||
m_InnerSpotAngle: 21.80208
|
||||
m_CookieSize: 10
|
||||
m_Shadows:
|
||||
m_Type: 2
|
||||
m_Resolution: -1
|
||||
m_CustomResolution: -1
|
||||
m_Strength: 1
|
||||
m_Bias: 0.05
|
||||
m_NormalBias: 0.4
|
||||
m_NearPlane: 0.2
|
||||
m_CullingMatrixOverride:
|
||||
e00: 1
|
||||
e01: 0
|
||||
e02: 0
|
||||
e03: 0
|
||||
e10: 0
|
||||
e11: 1
|
||||
e12: 0
|
||||
e13: 0
|
||||
e20: 0
|
||||
e21: 0
|
||||
e22: 1
|
||||
e23: 0
|
||||
e30: 0
|
||||
e31: 0
|
||||
e32: 0
|
||||
e33: 1
|
||||
m_UseCullingMatrixOverride: 0
|
||||
m_Cookie: {fileID: 0}
|
||||
m_DrawHalo: 0
|
||||
m_Flare: {fileID: 0}
|
||||
m_RenderMode: 0
|
||||
m_CullingMask:
|
||||
serializedVersion: 2
|
||||
m_Bits: 4294967295
|
||||
m_RenderingLayerMask: 1
|
||||
m_Lightmapping: 4
|
||||
m_LightShadowCasterMode: 0
|
||||
m_AreaSize: {x: 1, y: 1}
|
||||
m_BounceIntensity: 1
|
||||
m_ColorTemperature: 6570
|
||||
m_UseColorTemperature: 0
|
||||
m_BoundingSphereOverride: {x: 0, y: 0, z: 0, w: 0}
|
||||
m_UseBoundingSphereOverride: 0
|
||||
m_ShadowRadius: 0
|
||||
m_ShadowAngle: 0
|
||||
--- !u!4 &2013333185
|
||||
Transform:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 2013333183}
|
||||
m_LocalRotation: {x: 0.40821788, y: -0.23456968, z: 0.10938163, w: 0.8754261}
|
||||
m_LocalPosition: {x: 0, y: 3, z: 0}
|
||||
m_LocalScale: {x: 1, y: 1, z: 1}
|
||||
m_Children: []
|
||||
m_Father: {fileID: 0}
|
||||
m_RootOrder: 1
|
||||
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
||||
@@ -0,0 +1,8 @@
|
||||
fileFormatVersion: 2
|
||||
guid: a57c6abce7b08cb41a828048c0ea8938
|
||||
timeCreated: 1481820501
|
||||
licenseType: Store
|
||||
DefaultImporter:
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
@@ -0,0 +1,91 @@
|
||||
#define Graph_And_Chart_PRO
|
||||
using UnityEngine;
|
||||
using System.Collections;
|
||||
using ChartAndGraph;
|
||||
using System.Collections.Generic;
|
||||
using System;
|
||||
|
||||
public class BarRunChart : MonoBehaviour
|
||||
{
|
||||
|
||||
class RunChartEntry
|
||||
{
|
||||
public RunChartEntry(string name,double amount)
|
||||
{
|
||||
Name = name;
|
||||
Amount = amount;
|
||||
}
|
||||
public string Name;
|
||||
public double Amount;
|
||||
}
|
||||
|
||||
public float switchTime = 0.1f;
|
||||
float switchTimeCounter =0f;
|
||||
|
||||
List<RunChartEntry> mEntries = new List<RunChartEntry>();
|
||||
public Material SourceMaterial;
|
||||
// Use this for initialization
|
||||
void Start()
|
||||
{
|
||||
switchTimeCounter = switchTime;
|
||||
|
||||
|
||||
var bar = GetComponent<BarChart>();
|
||||
bar.TransitionTimeBetaFeature = switchTime;
|
||||
bar.DataSource.ClearCategories();
|
||||
bar.DataSource.ClearGroups();
|
||||
bar.DataSource.AddGroup("Default");
|
||||
|
||||
// generate a random run chart
|
||||
for (int i = 0; i < 10; i++)
|
||||
{
|
||||
string categoryName = "Item " + i;
|
||||
mEntries.Add(new RunChartEntry(categoryName, UnityEngine.Random.value * 10));
|
||||
Material mat = new Material(SourceMaterial);
|
||||
mat.color = new Color(
|
||||
UnityEngine.Random.Range(0f, 1f),
|
||||
UnityEngine.Random.Range(0f, 1f),
|
||||
UnityEngine.Random.Range(0f, 1f)
|
||||
);
|
||||
bar.DataSource.AddCategory(categoryName, mat);
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
void AddValuesToCategories()
|
||||
{
|
||||
|
||||
for (int i = 0; i < mEntries.Count; i++)
|
||||
{
|
||||
mEntries[i].Amount += UnityEngine.Random.Range(-0.3f, 0.3f);
|
||||
}
|
||||
}
|
||||
// Update is called once per frame
|
||||
void Update()
|
||||
{
|
||||
// changes are timed
|
||||
switchTimeCounter -= Time.deltaTime;
|
||||
if (switchTimeCounter < 0f)
|
||||
{
|
||||
switchTimeCounter = switchTime;
|
||||
var bar = GetComponent<BarChart>();
|
||||
//position the categories according to the currently displayed values
|
||||
for (int i = 0; i < mEntries.Count; i++)
|
||||
{
|
||||
bar.DataSource.MoveCategory(mEntries[i].Name, i);
|
||||
}
|
||||
// add the changes
|
||||
AddValuesToCategories();
|
||||
// sort the changes
|
||||
mEntries.Sort((x, y) => (int)Math.Sign(x.Amount - y.Amount));
|
||||
// animate the transition to the next values
|
||||
for (int i = 0; i < mEntries.Count; i++)
|
||||
{
|
||||
|
||||
bar.DataSource.SlideValue(mEntries[i].Name, "Default", mEntries[i].Amount, switchTime);
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,12 @@
|
||||
fileFormatVersion: 2
|
||||
guid: dd463d636104ce74a9519e7ea3354e93
|
||||
timeCreated: 1579123947
|
||||
licenseType: Store
|
||||
MonoImporter:
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
@@ -0,0 +1,46 @@
|
||||
#define Graph_And_Chart_PRO
|
||||
using UnityEngine;
|
||||
using System.Collections;
|
||||
using ChartAndGraph;
|
||||
|
||||
public class ChangeOrder : MonoBehaviour {
|
||||
|
||||
public float slideTime = 5f;
|
||||
public float switchTime = 7f;
|
||||
float timeCounter = 1f;
|
||||
float switchTimeCounter = 0.3f;
|
||||
// Use this for initialization
|
||||
void Start () {
|
||||
timeCounter = 0f;
|
||||
switchTimeCounter = switchTime;
|
||||
|
||||
}
|
||||
|
||||
// Update is called once per frame
|
||||
void Update ()
|
||||
{
|
||||
timeCounter -= Time.deltaTime;
|
||||
switchTimeCounter -= Time.deltaTime;
|
||||
if(switchTimeCounter < 0f)
|
||||
{
|
||||
switchTimeCounter = switchTime;
|
||||
var bar = GetComponent<BarChart>();
|
||||
bar.DataSource.SwitchCategoryPositions("Category 1", "Category 2");
|
||||
}
|
||||
if (timeCounter < 0f)
|
||||
{
|
||||
var bar = GetComponent<BarChart>();
|
||||
timeCounter = slideTime;
|
||||
for (int i = 1; i <= 3; i++)
|
||||
{
|
||||
string cat = "Category " + i;
|
||||
for (int j = 1; j <= 3; j++)
|
||||
{
|
||||
string grp = "Group " + j;
|
||||
bar.DataSource.SlideValue(cat, grp, Random.value * 10f, slideTime);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,12 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 1984a3a29abaa8d4d95e5dd16fee22ad
|
||||
timeCreated: 1559303024
|
||||
licenseType: Store
|
||||
MonoImporter:
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
File diff suppressed because it is too large.
Load diff
@@ -0,0 +1,8 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 8f78cbad10a2a194ebc91ce365d6424a
|
||||
timeCreated: 1559303038
|
||||
licenseType: Store
|
||||
DefaultImporter:
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
File diff suppressed because it is too large.
Load diff
@@ -0,0 +1,8 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 0d71dabf5d2b4b7449d5a332f19d5516
|
||||
timeCreated: 1579123925
|
||||
licenseType: Store
|
||||
DefaultImporter:
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
Reference in new issue
Block a user