예제 #1
0
        public void Reset()
        {
            //moveable.Reset(); // remove in v2
            ShoreControl fromShore = ((FirstControl)Diretor.getInstance().sceneCtrl).fromShore;

            GetOnShore(fromShore);
            item.transform.position = fromShore.GetEmptyPosition();
            fromShore.GetOnShore(this);
        }
예제 #2
0
 public void GetOnShore(ShoreControl side)
 {
     shoreCtrl             = side;
     item.transform.parent = null;
     isOnBoat = false;
 }
예제 #3
0
 //public void MoveTo(Vector3 des) // remove in v2
 //{
 //    moveable.MoveTo(des);
 //}
 public void GetOnBoat(BoatControl boatCtrl)
 {
     shoreCtrl             = null;
     item.transform.parent = boatCtrl.boat.transform;
     isOnBoat = true;
 }