problem : tiles dont have an update loop, neither do they have a start / destroy method solution : finished working on a way to create a custom start/update/destroy pipeline for the projects custom tiles. it's using LevelManagerScript as to Update. note : also created a database and a start of serialization system so we can save and load stuff.
13 lines
301 B
C#
13 lines
301 B
C#
using System.Collections.Generic;
|
|
using UnityEngine;
|
|
|
|
public interface ILevelObject
|
|
{
|
|
string Name { get; }
|
|
Vector3 Position { get; }
|
|
void LevelUpdate();
|
|
void LevelStart();
|
|
void LevelDestroy();
|
|
bool Equals(ILevelObject other);
|
|
Dictionary<string, object> ToDictionary();
|
|
} |