void Awake() { movementAI = GetComponent <MovementAI>(); botFSM = GetComponent <BotFSM>(); actionsAI = GetComponent <ActionsAI>(); triggerController = GetComponent <AITriggerController>(); }
void Start() { aiController2D = GetComponent <AIController2D>(); triggerController = GetComponent <AITriggerController>(); gravity = -(2 * maxJumpHeight) / Mathf.Pow(timeToJumpApex, 2); maxJumpVelocity = Mathf.Abs(gravity * timeToJumpApex); minJumpVelocity = Mathf.Sqrt(2 * Mathf.Abs(gravity) * minJumpHeight); }