void Start() { fsmCivilianFollowsMarine = GetComponent <FSM_CIVILIAN_FOLLOWS_MARINE>(); arrive = GetComponent <Arrive>(); blackboard = GetComponent <CIVILIAN_BlackBoard>(); fsmCivilianFollowsMarine.enabled = false; arrive.enabled = false; }
void Start() { wander = GetComponent <WanderAroundPlusAvoid>(); flee = GetComponent <FleePlusAvoid>(); blackboard = GetComponent <CIVILIAN_BlackBoard>(); wander.enabled = false; flee.enabled = false; wander.attractor = blackboard.campFire; }
void Start() { fsmCivilianCamping = GetComponent <FSM_CIVILIAN_CAMPING>(); leaderFollowing = GetComponent <LeaderFollowingBlended>(); blackboard = GetComponent <CIVILIAN_BlackBoard>(); ks = GetComponent <KinematicState>(); fsmCivilianCamping.enabled = false; leaderFollowing.enabled = false; normalSpeed = ks.maxSpeed; normalAcc = ks.maxAcceleration; }