using UnityEngine; using System.Collections.Generic; public class #SCRIPTNAME# : LevelTile { public override void LevelStart() { //executes when object is added to level manager } public override void LevelUpdate() { //executes when level manager updates } public override void LevelDestroy() { //executes when object is removed from level manager } public override bool Equals(ILevelObject other) { var isEqual = base.Equals(other); //add important code to differentiate this tile from another similar tile return isEqual; } public override Dictionary ToDictionary() { var dict = base.ToDictionary(); //add variables you would like to serialize to the dictionary return dict; } public override void LoadDictionary(Dictionary dict) { base.LoadDictionary(dict); //fetch variables you would like to deserialize from the dictionary. } }