Files
old-profesor-atom/Profesor Atom/Library/metadata/84/84a4f15a3179f1d4993aded11f4d0232

203 lines
8.8 KiB
Plaintext
Raw Normal View History

2017-05-17 12:25:25 +03:00
w#15.6.1f1<00><><EFBFBD><EFBFBD><00><><EFBFBD>0<05><><EFBFBD><EFBFBD>L.`?^<5E>0D7<00><><EFBFBD><EFBFBD><EFBFBD><00><00><00><><00><00><00><00><00><00><00><00><00>#<00><00>+H<00>3<00><><EFBFBD><EFBFBD><00>1<00>1<00><><EFBFBD><EFBFBD><EFBFBD>@<00><00><00> Q<00>j<00>
<00><00>< <00><00>H H<00>Z<00><><EFBFBD><EFBFBD> <00>1<00>1<00><><EFBFBD><EFBFBD><EFBFBD>@<00><00><00>Q<00>j<00><00><00>g<00><00><00><00><00><00>#<00><00>+v~<00><00><><00><00><><00><00><><00><00><><00><00><><00><00><><00><00><><00><00><><00><00><><00><00><> <00><00><>!<00><00><>"<00><00><>#<00><00>$<00><00>%<00><00>&<00><00>#<00><><EFBFBD><EFBFBD>'<00>1<00>1<00><><EFBFBD><EFBFBD><EFBFBD>(<00><00><00><00>)H<00>j<00><><EFBFBD><EFBFBD><EFBFBD>*<00>1<00>1<00><><EFBFBD><EFBFBD><EFBFBD>+@<00><00><00>,Q<00>j<00>-<00><00>*.<00><00>8/AssetMetaDataguiddata[0]data[1]data[2]data[3]pathNametimeCreatedoriginalChangesetoriginalNameoriginalParentHash128originalDigestbytes[0]bytes[1]bytes[2]bytes[3]bytes[4]bytes[5]bytes[6]bytes[7]bytes[8]bytes[9]bytes[10]bytes[11]bytes[12]bytes[13]bytes[14]bytes[15]labelsassetStoreReflicenseType <00><>z{<0E>@<40><05><>5^(<28>H'<00>7<00><><EFBFBD><EFBFBD><EFBFBD><00><00><00><><00> <00><00> <00><00>#.<00>,<00><00><><00> <00><00>#.<00>,H<00><><00><><EFBFBD><EFBFBD><EFBFBD><01>1<00>1<00><><EFBFBD><EFBFBD><EFBFBD> @<00><00><00>
Q<00>j<00> <00><00>5<00><><EFBFBD><EFBFBD> <00>1<00>1<00><><EFBFBD><EFBFBD><EFBFBD> <00><00><00><00><00>j<00><><EFBFBD><EFBFBD><EFBFBD><00>H<00><><00><><EFBFBD><EFBFBD><EFBFBD><00>1<00>1<00><><EFBFBD><EFBFBD><EFBFBD>@<00><00><00>Q<00>j<00>y<00>
<00> <00><00>#.<00>, <00>I@<00><00>X @<00><00>#.<00>,H<00>]<00><><EFBFBD><EFBFBD><00>1<00>1<00><><EFBFBD><EFBFBD><EFBFBD>@<00><00><00>Q<00>j<00>H<00>h<00><><EFBFBD><EFBFBD><00>1<00>1<00><><EFBFBD><EFBFBD><EFBFBD> @<00><00><00>!Q<00>j<00>"H<00>z<00><><EFBFBD><EFBFBD>#<00>1<00>1<00><><EFBFBD><EFBFBD><EFBFBD>$@<00><00><00>%Q<00>j<00>&MonoImporterPPtr<EditorExtension>m_FileIDm_PathIDm_DefaultReferencesexecutionOrdericonm_UserDatam_AssetBundleNamem_AssetBundleVariants<00><><EFBFBD>8-l'<27><>愁h<E68481>ΐA,<00><00>7<00><><EFBFBD><EFBFBD><EFBFBD><00><00><00><><00><00><00> <00><00>.<00><00><00><><00> <00><00>.<00>H<00><><00><><EFBFBD><EFBFBD><EFBFBD><01>1<00>1<00><><EFBFBD><EFBFBD><EFBFBD> @<00><00><00>
Q<00>j<00> H<00><><00><><EFBFBD><EFBFBD><EFBFBD> <01>1<00>1<00><><EFBFBD><EFBFBD><EFBFBD> @<00><00><00>Q<00>j<00><00><00>(<00><><EFBFBD><EFBFBD><01>1<00>1<00><><EFBFBD><EFBFBD><EFBFBD><01><00><00><00><00>j<00><><EFBFBD><EFBFBD><EFBFBD><01>H<00><><00><><EFBFBD><EFBFBD><EFBFBD><01>1<00>1<00><><EFBFBD><EFBFBD><EFBFBD>@<00><00><00>Q<00>j<00>y<00>
<00> <00><00>.<00>y<00>< <00><00>.<00><00><00>CH<00>T<00><><EFBFBD><EFBFBD><10>1<00>1<00><><EFBFBD><EFBFBD><EFBFBD> @<00><00><00>!Q<00>j<00>"H<00>`<00><><EFBFBD><EFBFBD>#<10>1<00>1<00><><EFBFBD><EFBFBD><EFBFBD>$@<00><00><00>%Q<00>j<00>&H<00>l<00><><EFBFBD><EFBFBD>'<10>1<00>1<00><><EFBFBD><EFBFBD><EFBFBD>(@<00><00><00>)Q<00>j<00>*L<00>{+PPtr<EditorExtension>m_FileIDm_PathIDm_DefaultReferencesm_Iconm_ExecutionOrderm_ClassNamem_Namespacem_AssemblyNamem_IsEditorScript<00><00>@<00>y<EFBFBD><00>Q<00><>^\a<><61>M<EFBFBD>Q<EFBFBD>| <09>e.HJ<1F><13>M<><4D><EFBFBD><1D><> #AAssets/SteamVR/InteractionSystem/Teleport/Scripts/TeleportArea.cs<1A>TV<00><>* TeleportArea<65>//======= Copyright (c) Valve Corporation, All rights reserved. ===============
//
// Purpose: An area that the player can teleport to
//
//=============================================================================
using UnityEngine;
#if UNITY_EDITOR
using UnityEditor;
#endif
namespace Valve.VR.InteractionSystem
{
//-------------------------------------------------------------------------
public class TeleportArea : TeleportMarkerBase
{
//Public properties
public Bounds meshBounds { get; private set; }
//Private data
private MeshRenderer areaMesh;
private int tintColorId = 0;
private Color visibleTintColor = Color.clear;
private Color highlightedTintColor = Color.clear;
private Color lockedTintColor = Color.clear;
private bool highlighted = false;
//-------------------------------------------------
public void Awake()
{
areaMesh = GetComponent<MeshRenderer>();
tintColorId = Shader.PropertyToID( "_TintColor" );
CalculateBounds();
}
//-------------------------------------------------
public void Start()
{
visibleTintColor = Teleport.instance.areaVisibleMaterial.GetColor( tintColorId );
highlightedTintColor = Teleport.instance.areaHighlightedMaterial.GetColor( tintColorId );
lockedTintColor = Teleport.instance.areaLockedMaterial.GetColor( tintColorId );
}
//-------------------------------------------------
public override bool ShouldActivate( Vector3 playerPosition )
{
return true;
}
//-------------------------------------------------
public override bool ShouldMovePlayer()
{
return true;
}
//-------------------------------------------------
public override void Highlight( bool highlight )
{
if ( !locked )
{
highlighted = highlight;
if ( highlight )
{
areaMesh.material = Teleport.instance.areaHighlightedMaterial;
}
else
{
areaMesh.material = Teleport.instance.areaVisibleMaterial;
}
}
}
//-------------------------------------------------
public override void SetAlpha( float tintAlpha, float alphaPercent )
{
Color tintedColor = GetTintColor();
tintedColor.a *= alphaPercent;
areaMesh.material.SetColor( tintColorId, tintedColor );
}
//-------------------------------------------------
public override void UpdateVisuals()
{
if ( locked )
{
areaMesh.material = Teleport.instance.areaLockedMaterial;
}
else
{
areaMesh.material = Teleport.instance.areaVisibleMaterial;
}
}
//-------------------------------------------------
public void UpdateVisualsInEditor()
{
areaMesh = GetComponent<MeshRenderer>();
if ( locked )
{
areaMesh.sharedMaterial = Teleport.instance.areaLockedMaterial;
}
else
{
areaMesh.sharedMaterial = Teleport.instance.areaVisibleMaterial;
}
}
//-------------------------------------------------
private bool CalculateBounds()
{
MeshFilter meshFilter = GetComponent<MeshFilter>();
if ( meshFilter == null )
{
return false;
}
Mesh mesh = meshFilter.sharedMesh;
if ( mesh == null )
{
return false;
}
meshBounds = mesh.bounds;
return true;
}
//-------------------------------------------------
private Color GetTintColor()
{
if ( locked )
{
return lockedTintColor;
}
else
{
if ( highlighted )
{
return highlightedTintColor;
}
else
{
return visibleTintColor;
}
}
}
}
#if UNITY_EDITOR
//-------------------------------------------------------------------------
[CustomEditor( typeof( TeleportArea ) )]
public class TeleportAreaEditor : Editor
{
//-------------------------------------------------
void OnEnable()
{
if ( Selection.activeTransform != null )
{
TeleportArea teleportArea = Selection.activeTransform.GetComponent<TeleportArea>();
if ( teleportArea != null )
{
teleportArea.UpdateVisualsInEditor();
}
}
}
//-------------------------------------------------
public override void OnInspectorGUI()
{
DrawDefaultInspector();
if ( Selection.activeTransform != null )
{
TeleportArea teleportArea = Selection.activeTransform.GetComponent<TeleportArea>();
if ( GUI.changed && teleportArea != null )
{
teleportArea.UpdateVisualsInEditor();
}
}
}
}
#endif
}
<00><>* TeleportAreaValve.VR.InteractionSystemAssembly-CSharp.dll