Animations
beginning of animals
This commit is contained in:
parent
c98713e3a7
commit
1d80f01994
21 changed files with 1156 additions and 24 deletions
19
Assets/Scripts/Animal.cs
Normal file
19
Assets/Scripts/Animal.cs
Normal file
|
|
@ -0,0 +1,19 @@
|
|||
using DefaultNamespace;
|
||||
using UnityEngine;
|
||||
|
||||
public class Animal : MonoBehaviour {
|
||||
protected Sprite animalSprite;
|
||||
private Item producedItem;
|
||||
|
||||
protected Animal(Item producedItem) {
|
||||
this.producedItem = producedItem;
|
||||
}
|
||||
|
||||
// TODO: Movement
|
||||
|
||||
// TODO: Animations
|
||||
|
||||
private void OnMouseDown() {
|
||||
ActionInvoker.InvokeAction(gameObject, PlayerController.instance.SelectedItem);
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue