예제 #1
0
 public void reset()
 {
     land = (SSDirector.getInstance().CurrentSceneController as Controller).startLand;
     boat.deleteRole(this.getName());
     role.transform.position = land.getEmptyPosition();
     land.addRole(this);
     getOnLand(land);
 }
예제 #2
0
        public void getOnBoat(boatModel boat)
        {
            land.deleteRole(this.getName());
            this.land = null;

            this.moveTo(boat.getEmptyPosistion());
            boat.addRole(this);
            role.transform.parent = boat.getBoat().transform;

            onBoat = true;
        }
예제 #3
0
        public void getOnLand(landModel land)
        {
            boat.deleteRole(this.getName());

            this.moveTo(land.getEmptyPosition());
            land.addRole(this);
            role.transform.parent = null;
            this.land             = land;

            onBoat = false;
        }
예제 #4
0
 public void getOnBoat(boatModel boat)
 {
     this.land             = null;
     role.transform.parent = boat.getBoat().transform;
     onBoat = true;
 }
예제 #5
0
 public void getOnLand(landModel land)
 {
     role.transform.parent = null;
     this.land             = land;
     onBoat = false;
 }
예제 #6
0
 public void reset()
 {
     land = (SSDirector.getInstance().CurrentSceneController as Controller).startLand;
     getOnLand(land);
 }