Skip to content

Instantly share code, notes, and snippets.

@longtran2904
longtran2904 / CustomRoomTemplateInitializer.cs
Created April 26, 2020 11:37
Custom room template initializer and custom tilemaplayers
using System.IO;
using Assets.ProceduralLevelGenerator.Scripts.Generators.Common.RoomTemplates.RoomTemplateInitializers;
using UnityEngine;
#if UNITY_EDITOR
using UnityEditor;
#endif
namespace Assets.Scripts
{
Engine::Engine() {
time = 0;
}
void Engine::updateLoop(float deltaTime) {
this->deltaTime = deltaTime;
time += deltaTime;
// Button input:
int buttonStateOld = buttonState;