public void getOnBoat(boatController boatCtrl, CCActionManager actionManager) { status = "boat"; people.transform.parent = boatCtrl.getBoat().transform; Vector3 aim = boatCtrl.getBoatPos(getName()); CCPeopleMoveing peopleMove = CCPeopleMoveing.GetSSAction(aim); actionManager.RunAction(people, peopleMove, null); }
public void getOnBoat(boatController boatCtrl) { status = "boat"; people.transform.parent = boatCtrl.getBoat().transform; people.transform.localPosition = boatCtrl.getBoatPos(getName()); }