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); }
public void GetOnShore(ShoreControl side) { shoreCtrl = side; item.transform.parent = null; isOnBoat = false; }
//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; }