public void PauseBird() { birdStopped = true; BirdState = BirdStateE.stopped; BirdSpeed = 0; SetAnimationScript(); }
public void ResetBird() { rundist = 0; MoveBirdGos(0); birdStopped = true; BirdState = BirdStateE.atstart; SetAnimationScript(); }
public bool sbsAtStart() { if (BirdState == BirdStateE.running) { initBirdVel = BirdVel; BirdVel = 0; } BirdState = BirdStateE.atstart; return(true); }
public void StartBird() { //Debug.Log("StartBird called"); birdStopped = false; BirdSpeed = initBirdSpeed; if (BirdSpeed == 0) { BirdSpeed = 1; // this should not happen } BirdState = BirdStateE.running; SetAnimationScript(); }
void SetAtGoal() { if (BirdState == BirdStateE.atgoal) { return; } birdStopped = true; BirdState = BirdStateE.atgoal; initBirdSpeed = BirdSpeed; BirdSpeed = 0; SetAnimationScript(); }
void initValues() { BirdSpeed = 0; BirdFlyHeight = 1.5f; lookaheadtime = 1.1f; initBirdSpeed = 1; rundist = 0; curpt = Vector3.zero; birdform = BirdFormE.person; birdStopped = true; BirdState = BirdStateE.dormant; //Debug.Log("birdctrl initValues called"); }
void initValues() { BirdVel = 0; BirdFlyHeight = 1.2f; lookaheadtime = 1.1f; initBirdVel = 1; rundist = 0; curptlc = Vector3.zero; birdform = BirdFormE.hummingbird; BirdState = BirdStateE.unbuilt; //RouteMan.Log("birdctrl initValues called"); }
public void SetBirdPath(Path path, bool stopbird = false) { this.path = path; curpt = Vector3.zero; lastcurpt = Vector3.zero; rundist = 0; if (stopbird) { if (BirdState == BirdStateE.running) { initBirdSpeed = BirdSpeed; BirdSpeed = 0; } BirdState = BirdStateE.atstart; } }
public bool sbsAtGoal() { BirdState = BirdStateE.atgoal; return(true); }
public bool sbsPaused() { BirdState = BirdStateE.paused; return(true); }
public bool sbsRunning() { BirdState = BirdStateE.running; return(true); }