Пример #1
0
    public override void TileData(WorldTile thisTile)
    {
        base.TileData(thisTile);

        castData    = (PlantScriptableObject)data;
        dynamicData = thisTile.DynamicWorldObjectData as PlantObjectData;
        currentTier = dynamicData.CurrentTier;
        animator.SetSprite(currentTier.tierSprite);
    }
Пример #2
0
 public PlantObjectData(WorldObjectScriptableObject defaultData) : base(defaultData)
 {
     castData    = defaultData as PlantScriptableObject;
     plantTier   = 0;
     currentTier = castData.tiers[0];
 }