Пример #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);
 }