public override void DeserializeCustomObjects(JsonHelper customObjects) { SpinyState = (SpinyState)customObjects.GetInt("spinyState"); }
public override void HandleTileCollision(Tile tile, Vector2 resolutionDistance) { if (SpinyState == SpinyState.Egg && resolutionDistance.Y < 0f) { SpinyState = SpinyState.Spiny; } base.HandleTileCollision(tile, resolutionDistance); }