This file contains hidden or 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
| IEnumerator Start() { | |
| var i = 0; | |
| while (true) { | |
| renderer.material.mainTexture = textures[i]; | |
| yield return new WaitForSeconds(delays[i]); | |
| ++i; | |
| if(i >= maxFrames) i = 0; | |
| } | |
| } |
This file contains hidden or 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 UnityEditor; | |
| public interface IGenericEditorWindow { | |
| void OnGUI(); | |
| void OnFocus(); | |
| void OnDisable(); | |
| EditorWindow Window { get; set; } | |
| } |
This file contains hidden or 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 System.Collections; | |
| using System.Linq; | |
| using GoodStuff.NaturalLanguage; | |
| public class BackgroundSpawner : MonoBehaviour { | |
| public int seed = 1; | |
| public float starDensityThreshold = 1f; | |
| public float starCreationMaxCutoff = 0.5f; |
This file contains hidden or 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
| Shader "Custom/SensorRadius" { | |
| Properties { | |
| _MainTex ("Main Texture", 2D) = "white" {} | |
| _RampTex ("Ramp Txture", 2D) = "white" {} | |
| _ScreenX ("Screen X", Float) = 0 | |
| _ScreenY ("Screen Y", Float) = 0 | |
| _Radius ("Cutoff Radius", Range(0, 1)) = 0.5 | |
| } | |
| SubShader { | |
| Tags { "RenderType"="Transparent" "Queue"="Transparent"} |
This file contains hidden or 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; | |
| using System.Collections.Generic; | |
| using System.Linq; | |
| using GoodStuff.NaturalLanguage; | |
| public class TractorBeam : MonoBehaviour { | |
| public float tractorBeamRange = 10f; | |
| public GameObject tractorBeamPrefab; | |
| public GameObject tractorAudioPrefab; |
This file contains hidden or 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
| var colorIndex = 0; | |
| var colorsDifferent = originalStarColors.Any(c => c != starColors[colorIndex++]); |
This file contains hidden or 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; | |
| public class AlignedCompassRings : MonoBehaviour { | |
| public GameObject yRing; | |
| public GameObject north; | |
| public float zOffset = 0.0f; | |
| void Awake() { | |
| yRing.SetActiveRecursively(false); |
This file contains hidden or 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 OnSerializeNetworkView(BitStream stream, NetworkMessageInfo info) { | |
| if (stream.isWriting) { | |
| var position = transform.position; | |
| var rotation = transform.rotation; | |
| stream.Serialize(ref movementSpeed); | |
| stream.Serialize(ref currentHorizontalMovement); | |
| stream.Serialize(ref currentVerticalMovement); | |
| stream.Serialize(ref position); | |
| stream.Serialize(ref rotation); |
This file contains hidden or 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
| config.UseVerboseErrors = true; |
This file contains hidden or 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
| <asp:content contentplaceholderid="MainContent" id="Content2" runat="server"> | |
| <script id="user-table-template" type="text/html"> | |
| <tr id="user-row-${Id}"> | |
| <td> | |
| <span id="user-first-name-span-${Id}">${FirstName}</span> | |
| <input id="user-first-name-text-${Id}" type="text" style="display:none;" value="${FirstName}"/> | |
| </td> | |
| <td> |