// Use this for initialization void Start() { socketEquipment = GetComponent<SocketEquipment>(); botControl = GetComponent<FSMBotController>(); //player = GameObject.FindWithTag("Player"); player = botControl.playerTransform; thisBody = GetComponent<Rigidbody>(); energyControl = GetComponent<EnergyController>(); flipperCooldownTimers = new float[Enum.GetNames(typeof(SocketLocation)).Length]; hammerCooldownTimers = new float[Enum.GetNames(typeof(SocketLocation)).Length]; SawHoldTimers = new float[Enum.GetNames(typeof(SocketLocation)).Length]; }
void Start() { path = new NavMeshPath(); //targetRigidbody = target.GetComponent<Rigidbody>(); botController = this.GetComponent<FSMBotController>(); }