public void getOffBoat(environmentController envCtrl, CCActionManager actionManager) { status = "shore"; people.transform.parent = null; Vector3 aim = envCtrl.getPosVec(size, number); CCPeopleMoveing peopleMove = CCPeopleMoveing.GetSSAction(aim); actionManager.RunAction(people, peopleMove, null); }
public void reset(environmentController envCtrl, CCActionManager actionManager) { size = defaultSize; status = "shore"; people.transform.parent = null; CCPeopleMoveing peopleMove = CCPeopleMoveing.GetSSAction(envCtrl.getPosVec(size, number)); actionManager.RunAction(people, peopleMove, null); }
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); }