Skip to content
ldstrumpet edited this page Feb 3, 2015 · 17 revisions

###Interfaces

public class Inventory{
     // These variables are set by Unity
     public capacity;   
     public itemList;
     public currentItem;

     public void takeItem() {}
     public void removeItem() {}
}
public class Item {
     // These variables are set by Unity
     public int MAX_DURABILITY;
     public int durability;   
     public int size;

     public void OnUse() {}
     public void decreaseDurability() {this.durability--;}
}
public class Person {
     // These variables are set by Unity
     public MAX_HEALTH;
     public currentHealth;
     public Inventory inventory;   

     public void onUpdate() {}
     public void onTime() {}
}

Clone this wiki locally