public override void TileData(WorldTile thisTile) { base.TileData(thisTile); castData = (PlantScriptableObject)data; dynamicData = thisTile.DynamicWorldObjectData as PlantObjectData; currentTier = dynamicData.CurrentTier; animator.SetSprite(currentTier.tierSprite); }
public PlantObjectData(WorldObjectScriptableObject defaultData) : base(defaultData) { castData = defaultData as PlantScriptableObject; plantTier = 0; currentTier = castData.tiers[0]; }