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

            base.HandleTileCollision(tile, resolutionDistance);
        }