Skip to content

Instantly share code, notes, and snippets.

using UnityEngine;
using System.Collections.Generic;
public class FishStatsTemplate : MonoBehaviour
{
public GameObject Parent; // Set this to the fish's parent prefab. EG, fast dolphin has a reference to dolphin.
public GameObject Zone; // Set by the spawner script to the zone that spawned it.
// Feel free to add new stats or change them or whatever.
public float Speed = 1.0f;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace IN8
{
public class Emulator
{
//Setup memory and registers
Specification of the IN8 (inate) 8-bit CPU
Registers
{ Named registers implemented by the IN8 CPU.
A, B - Accumulator
C, D, E - Scratch
H, L - Scratch, and memory access
IP - Special 16-bit instruction pointer
SP - Special 16-bit stack pointer
float4x4 World;
float4x4 View;
float4x4 Projection;
float4x4 WorldInverseTranspose;
float3 DiffuseLightDirection = float3(0.3, -0.4, -0.5);
float4 DiffuseColor = float4(1, 1, 1, 1);
float DiffuseIntensity = 1.0;
float3 FillLightDirection = float3(-0.6,0.5,0.2);
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Reflection.Emit;
using System.Reflection;
namespace StreamProject
{
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.CodeDom.Compiler;
using System.Reflection;
namespace Gem
{
<#@ template debug="false" hostspecific="false" language="C#" #>
<#@ assembly name="System.Core" #>
<#@ import namespace="System.Linq" #>
<#@ import namespace="System.Text" #>
<#@ import namespace="System.Collections.Generic" #>
<#@ output extension=".cs" #>
<#@ include file="RuleGen.t4" #>
//This is generated code. Do not modify this file; modify the template that produces it.
using System;
class Whatever
{
private class StaticBool { public bool Value = false; }
public RuleBuilder<T0, T1, TR> FirstTimeOnly()
{
var fakeStatic = new StaticBool();
return this.When((P0, P1) =>
{
···································································································
·PORT IVY SURFACE MAP··············································································
···································································································
···································································································
······································································A·allyway····················
······································································B·beach······················
··············B-B-T-B-B-B·············································C·lighthouse·················
·············/···/·······\············································D·docks······················
············B·Z-E-Q-R·····B-B·········································E·Main St····················
·············\··|············\········································F·bank·······················
Include "world-model.txt"
Include "map.txt"
Include "links.txt"
Include "standard-output.txt"
Include "system.txt"
Include "standard-actions.txt"
Global main-window-width:number;
Global radio-acquired:boolean = false;
Global inventory-created:boolean = false;