- Fix holes in level.
- Copy over relevant game objects.
- Remove old proc gen.
- Setup basic nav mesh for proc gen'd objects (A*).
- Wire up main menu to new scene.
- Fix character spawning.
- Incorporate selected character.
- Fix enemy AI/Pathfinding.
This file contains 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 UnityEditor; | |
using System.Collections; | |
using System.Collections.Generic; | |
// docs: https://docs.unity3d.com/ScriptReference/AssetModificationProcessor.OnWillSaveAssets.html | |
public class BuildSceneProcessor : UnityEditor.AssetModificationProcessor | |
{ | |
private const string DIALOG_TITLE = "Add to Build Settings?"; | |
private const string DIALOG_MSG = "Add to build settings for inclusion in future builds?"; |
This file contains 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; | |
// Written by Steve Streeting 2017 | |
// License: CC0 Public Domain http://creativecommons.org/publicdomain/zero/1.0/ | |
/// <summary> | |
/// Component which will flicker a linked light while active by changing its | |
/// intensity between the min and max values given. The flickering can be | |
/// sharp or smoothed depending on the value of the smoothing parameter. |
This file contains 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 System; | |
using System.Collections.Generic; | |
using System.Linq; | |
using UnityEngine; | |
namespace NoirLib { | |
public static class CollectionExtensions { | |
private static readonly System.Random _rand = new System.Random(); | |
public static T Random<T>(this T[] items) { |
This file contains 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
<rewrite> | |
<!-- Have a bunch of redirects? Put them in a separate file --> | |
<rules configSource="Rewrites.config" /> | |
<rules> | |
<!-- Simple rewrite --> | |
<rule name="Simple redirect" stopProcessing="true"> | |
<match url="^path/sub path/page\.aspx$" /> | |
<action type="Rewrite" url="/newpath.aspx" /> |
This file contains 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
<!-- | |
You can find existing browser definitions at | |
<windir>\Microsoft.NET\Framework\<ver>\CONFIG\Browsers | |
--> | |
<!-- File: MyAdapters.browser --> | |
<browsers> | |
<browser refID="Default"> | |
<controlAdapters> | |
<adapter controlType="System.Web.UI.WebControls.DropDownList" adapterType="DropDownListAdapter" /> | |
</controlAdapters> |
This file contains 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
public class CameraCollision : MonoBehaviour | |
{ | |
private Vector3 _dollyDirection; | |
private Vector3 _dollyDirectionAdjusted; | |
private float _distance; | |
public float MinDistance = 1.0f; | |
public floar MaxDistance = 4.0f; | |
public float Smooth = 1.0f; |
This file contains 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 System; | |
using System.Collections.Generic; | |
using System.IO; | |
using System.Linq; | |
using System.Text; | |
namespace DataUtils | |
{ | |
/// <summary> | |
/// Derived from Richard Carr's (Black Wasp) CsvWriter class at http://blackwasp.co.uk/WriteCsv.aspx |
This file contains 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 System; | |
using System.Collections.Generic; | |
using System.Linq; | |
using System.Text; | |
public interface IServiceProvider | |
{ | |
T GetService<T>() where T : class; | |
} |
This file contains 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
-- From https://gallery.technet.microsoft.com/scriptcenter/Script-for-rebuilding-all-8d079754 | |
DECLARE @TableName varchar(255); | |
DECLARE TableCursor CURSOR FOR | |
SELECT table_name | |
FROM information_schema.tables | |
WHERE table_type = 'base table' | |
OPEN TableCursor |
NewerOlder