// Use this for initialization void Start() { b = new Breed(null, 50, 10); troll = new Breed(b, 0, 5); oldpos = this.transform.position; newpos = new Vector3(oldpos.x, (oldpos.y + troll.getJump()), oldpos.z); }
public int getJump() { if (jump != 0 || parent == null) { return(jump); } return(parent.getJump()); }
public int jump() { return(b.getJump()); }