Ejemplo n.º 1
0
    // 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);
    }
Ejemplo n.º 2
0
    public int getJump()
    {
        if (jump != 0 || parent == null)
        {
            return(jump);
        }

        return(parent.getJump());
    }
Ejemplo n.º 3
0
 public int jump()
 {
     return(b.getJump());
 }