added Wheat item, changed Wheat Sprites
This commit is contained in:
parent
81e91c185c
commit
624432e1da
4 changed files with 33 additions and 15 deletions
20
Assets/Resources/Items/Wheat.asset
Normal file
20
Assets/Resources/Items/Wheat.asset
Normal file
|
|
@ -0,0 +1,20 @@
|
|||
%YAML 1.1
|
||||
%TAG !u! tag:unity3d.com,2011:
|
||||
--- !u!114 &11400000
|
||||
MonoBehaviour:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 0}
|
||||
m_Enabled: 1
|
||||
m_EditorHideFlags: 0
|
||||
m_Script: {fileID: 11500000, guid: 5f096d187f76a734fac022700054dfec, type: 3}
|
||||
m_Name: Wheat
|
||||
m_EditorClassIdentifier:
|
||||
displayName:
|
||||
description:
|
||||
id: 0
|
||||
selectedSprite: {fileID: 0}
|
||||
defaultSprite: {fileID: 0}
|
||||
price: 0
|
||||
8
Assets/Resources/Items/Wheat.asset.meta
Normal file
8
Assets/Resources/Items/Wheat.asset.meta
Normal file
|
|
@ -0,0 +1,8 @@
|
|||
fileFormatVersion: 2
|
||||
guid: 50258e55bb19a974985dfd97633286af
|
||||
NativeFormatImporter:
|
||||
externalObjects: {}
|
||||
mainObjectFileID: 11400000
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
|
|
@ -38,9 +38,8 @@ public class Crop {
|
|||
_cropSpriteRenderer = cropSpriteRenderer;
|
||||
_hydrationSpriteRenderer = hydrationSpriteRenderer;
|
||||
|
||||
_smallCrop = BaseTile.GenerateSpriteFromFile("Assets/Farming Asset Pack/Split Assets/farming_tileset_027.png");
|
||||
_fullyGrownCrop =
|
||||
BaseTile.GenerateSpriteFromFile("Assets/Farming Asset Pack/Split Assets/farming_tileset_040.png");
|
||||
_smallCrop = BaseTile.GenerateSpriteFromFile("Assets/Farming Asset Pack/Split Assets/farming_tileset_026.png");
|
||||
_fullyGrownCrop = BaseTile.GenerateSpriteFromFile("Assets/Farming Asset Pack/Split Assets/farming_tileset_039.png");
|
||||
|
||||
_hydratedColor = new Color(0.5f, 0.5f, 1.0f, 0.269420f);
|
||||
|
||||
|
|
@ -112,7 +111,7 @@ public class Crop {
|
|||
}
|
||||
|
||||
private void AddCropToInventory() {
|
||||
Inventory.instance.AddItem(ItemContainer.Instance.GetItemByName("Wheat Seeds"), 3);
|
||||
Inventory.instance.AddItem(ItemContainer.Instance.GetItemByName("Wheat"), 1);
|
||||
}
|
||||
|
||||
private void UpdateSprite() {
|
||||
|
|
|
|||
|
|
@ -137,21 +137,12 @@
|
|||
"dependencies": {},
|
||||
"url": "https://packages.unity.com"
|
||||
},
|
||||
"com.unity.nuget.newtonsoft-json": {
|
||||
"version": "3.0.2",
|
||||
"depth": 2,
|
||||
"source": "registry",
|
||||
"dependencies": {},
|
||||
"url": "https://packages.unity.com"
|
||||
},
|
||||
"com.unity.services.core": {
|
||||
"version": "1.3.1",
|
||||
"version": "1.0.1",
|
||||
"depth": 1,
|
||||
"source": "registry",
|
||||
"dependencies": {
|
||||
"com.unity.modules.unitywebrequest": "1.0.0",
|
||||
"com.unity.nuget.newtonsoft-json": "3.0.2",
|
||||
"com.unity.modules.androidjni": "1.0.0"
|
||||
"com.unity.modules.unitywebrequest": "1.0.0"
|
||||
},
|
||||
"url": "https://packages.unity.com"
|
||||
},
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue