public void Unload() { _script.Release(); _script = null; _isReleased = true; _view = null; }
public void Load(int id) { _id = id; _isReleased = false; _data = CSVTableLoader.GetTableContainer("Map").GetRow(_id.ToString()); _originPos = new Vector2(); _size = new Vector2(_data["Width"].FloatValue, _data["Height"].FloatValue); _rect = new Rect(_originPos, _size); _script = new MapScript(this); }