base constructor for every Item
This commit is contained in:
parent
c3166c5b64
commit
384ce05bb7
8 changed files with 20 additions and 9 deletions
|
|
@ -1,6 +1,12 @@
|
|||
using UnityEngine;
|
||||
|
||||
namespace Items {
|
||||
public class FishingRod : MonoBehaviour {
|
||||
public class FishingRod : Item, IUsable {
|
||||
public FishingRod() : base("Fishing Rod", "Can be used to fish fishy fish.", 1) { }
|
||||
|
||||
public void select() {
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -3,6 +3,7 @@ using System.Collections.Generic;
|
|||
using UnityEngine;
|
||||
|
||||
namespace Items {
|
||||
public class Hoe : MonoBehaviour {
|
||||
public class Hoe : Item {
|
||||
public Hoe() : base("Hoe", "Used to hoe the ground into farmland.", 2){}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -3,6 +3,7 @@ using System.Collections.Generic;
|
|||
using UnityEngine;
|
||||
|
||||
namespace Items {
|
||||
public class Scythe : MonoBehaviour {
|
||||
public class Scythe : Item {
|
||||
public Scythe() : base("Scythe", "Used to cut down crops.", 3){}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -3,6 +3,7 @@ using System.Collections.Generic;
|
|||
using UnityEngine;
|
||||
|
||||
namespace Items {
|
||||
public class WateringCan : MonoBehaviour {
|
||||
public class WateringCan : Item {
|
||||
public WateringCan():base("Watering Can", "Used to water planted crops.", 4){}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -3,6 +3,7 @@ using System.Collections.Generic;
|
|||
using UnityEngine;
|
||||
|
||||
namespace Items {
|
||||
public class Wheat : MonoBehaviour {
|
||||
public class Wheat : Item {
|
||||
public Wheat() : base("Wheat", "Wheat is a grass widely cultivated for its seed, a cereal grain which is a worldwide staple food.", 5){}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -3,6 +3,7 @@ using System.Collections.Generic;
|
|||
using UnityEngine;
|
||||
|
||||
namespace Items {
|
||||
public class WheatSeed : MonoBehaviour {
|
||||
public class WheatSeed : Item {
|
||||
public WheatSeed() : base("Wheat Seeds", "When planted on farmland, wheat will grow.", 6){}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue