示例#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);
    }
示例#2
0
    public int getJump()
    {
        if (jump != 0 || parent == null)
        {
            return(jump);
        }

        return(parent.getJump());
    }
示例#3
0
 public int jump()
 {
     return(b.getJump());
 }