public BotLogicNavMesh(BotFlyable botFlyable,
                        float walkSpeed = 0.75f, float walkRotationSpeed = 120f,
                        float runSpeed  = 5f, float runRotationSpeed     = 120f) : base(botFlyable)
 {
     Initialize(botFlyable, botFlyable.NavMeshAgentComponent,
                botFlyable.JumpProximityChecker,
                walkSpeed, walkRotationSpeed, runSpeed, runRotationSpeed);
     botFlyable.BotLogicNavMeshRef = this;
 }
Beispiel #2
0
 void Awake()
 {
     BotFlyableComponent = GetComponent <BotFlyable>();
     BotFlyableComponent.FSMFlyable.OnStateChanged_AddListener(FlyableStateChanged_Listener);
 }
 public BotLogicFlight(BotFlyable botFlyable) : base(botFlyable)
 {
     Flying3DObjectComponent      = botFlyable.Flying3DObjectComponent;
     botFlyable.BotLogicFlyingRef = this;
 }